JasonBu

导航

2015年4月25日 #

qsort C++ VS2013 leetcode

摘要: class Solution {private: static int compare(const void * a, const void * b) { return (*(int*)a - *(int*)b); }public:int majorityElemen... 阅读全文

posted @ 2015-04-25 17:54 JasonBu 阅读(334) 评论(0) 推荐(0) 编辑

关于u32中查找和定位最后到bit Number of 1 Bits

摘要: 题目来源:https://leetcode.com/problems/number-of-1-bits/刷leetcode的时候发现了这个题目。作为常年跑底层嵌入式的我,对于这种题目兴趣还是很浓厚的class Solution {public: int hammingWeight(uint32... 阅读全文

posted @ 2015-04-25 01:57 JasonBu 阅读(179) 评论(0) 推荐(0) 编辑