- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 学习笔记 LeetCode 201. Bitwise AND of Numbers Range
LeetCode 201. Bitwise AND of Numbers RangeI think the Best Solution look like belowclass Solution { public: int rangeBitwiseAnd(int m, int n) { while (m < n) { n = n & (n-1);
2016-01-02 00:50:38
224
原创 (要正式学Linux,发现大一学的c底子太薄,看专业书籍重学。)重写简单的整数中取某一位的算法。
//chaunint getByteValue(int value, int bit){int i, bitValue = 1;for (i = 0; i<bit; i++){bitValue = bitValue*10;}return value / bitValue % 10;}
2014-04-27 21:12:15
389
用于嵌入式linux的半自动nfs挂载脚本
2014-10-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅