2013年6月5日
摘要: 问题描述对于任意给定的二进制,求出二进制中1的个数,之前在microsoft的电话面试中遇到,现在做个总结,也练下Python方法一:从低到高判断每一个元素是否为1,这里是采用依次与1取与的方法如5的二进制是101,那101与001取与,结果是001,不等于0,所以count加1。101向右移一位为... 阅读全文
posted @ 2013-06-05 21:02 MrMission 阅读(414) 评论(0) 推荐(0) 编辑
摘要: I am very glad that I hava a choice to go to microsoft. It's no doubt that I learn more things from it.基础First of all, I stand firmly for my conviction that the basis is of most importance. It's no need to worry about too much. Pay more attention to the basis knowledge and improve all aspect 阅读全文
posted @ 2013-06-05 10:50 MrMission 阅读(161) 评论(0) 推荐(0) 编辑