- 博客(4)
- 收藏
- 关注
原创 刷题总结之bit operation
1. Count how many 1 in binary representation of a 32-bit integer a.解法1:直观地计数a在32位上1的个数,count += a & (1解法2: 每次a&(a-1), ∵ (a-1)会把a的最后一位为1的bit变成0,所以在a==0之前,该操作的个数就是1的个数。2.Single number:在一个数组里,除了一
2016-11-01 13:15:28
860
原创 Nodejs beginner
1. Javascript important terms referenced in Nodejs: first class functions( allow functions to be passed to other places); closures( inner function has access to variables of outer functions)2. Nodej
2016-10-26 13:56:07
208
原创 计划
上午:阅读+刷lintcode ladder为主下午:刷leetcode/system, 整理类似题目。coursera的project晚上:总结题目, 建网站
2016-10-25 15:14:00
164
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人