扫土

热度:

数月没来,主机都被停了一次...东西差点又被删掉。

老婆的GRE还有几天就要考了,看她每天都做题看书到很晚,想想自己当年,觉得还是有些比不上...嗯,没看错人=P

昨天面试被问得一塌糊涂,把我那点C的老底揭了个体无完肤,一个static关键字把我整得死去活来,还有可恨的指针作用域问题...呃...更气人的是平时可以随便做的logic问题居然也没做上来...写下来给自己长点记性:

500瓶水,有一瓶有毒。一群老鼠,每只老鼠都可以喝无限量的水。但是毒药是慢性的,24小时之后才会发作。问最少用多少只老鼠才能在24小时之内(意味着只有一次喝水的机会)找到那瓶毒水?

明显的一个one-hot binary编码问题,2^9=512>500,所以9只老鼠就够了。(9位2进制可以表示512种状态)

Technorati 标签: , ,

本站标签: , ,

发表评论

日历

2010年七月
« 六    
 1234
567891011
12131415161718
19202122232425
262728293031  

文章索引模板

链接

StatPressCN

Since 20091224:
  • Current page is visited 1 times
  • Now there are 0 friends visiting this blog, 10 today, 7 yesterday, and 148 totally
  • The posts have been viewed 20 times today, 10 yesterday, and 465 totally
  • 0 friends have subscribed this blog
  • The TopPost is Cadence IC5141+Assura 314完全安装指南, TopBroswer is Firefox 3, TopOS is Windows XP
  • You come from , your broswer is , OS is
  • This blog have 53 posts, 4 pages, 8 comments, and 5 commentors.

技术支持来自 天高云淡

BABY COUNT

Just updated...
The Count is 2296.