2015年5月9日

【leetcode】【189】Rotate Array

摘要: #include#includeusing namespace std;class Solution {public: void rotate(vector& nums, int k) { //可参考STL源码剖析rotate()算法 k = k%nums.size(); vector::it... 阅读全文

posted @ 2015-05-09 14:10 ruan875417 阅读(130) 评论(0) 推荐(0) 编辑

【leetcode】【190】Reverse Bits

摘要: #include#includeusing namespace std;class Solution {public: uint32_t reverseBits(uint32_t n) { uint32_t sum = 0; uint32_t mask = 1; int count = 32;... 阅读全文

posted @ 2015-05-09 11:16 ruan875417 阅读(116) 评论(0) 推荐(0) 编辑

【leetcode】【191】Number of 1 Bits

摘要: #include#includeusing namespace std;class Solution {public: int hammingWeight(uint32_t n) { int count = 0; while (n){ n &= (n - 1);//见http://blog.... 阅读全文

posted @ 2015-05-09 10:50 ruan875417 阅读(121) 评论(0) 推荐(0) 编辑

找工作总结

摘要: 找工作的高峰期已经结束了,不出意外下周就要签三方了,这次找工作感觉对自己还是挺重要的,也算是自己人生中的一件大事,毕竟是自己的地一份工作,因此记录下来,算是自己学生生活的一次总结,也希望给师弟师妹们一点启发。 首先,要感谢我的母校--华中科技大学,没有这个优秀的学校做后台,我想自己根本没有机会去... 阅读全文

posted @ 2015-05-09 09:59 ruan875417 阅读(154) 评论(0) 推荐(0) 编辑

导航