随笔分类 -  Leetcode

摘要:// My own solutionclass Solution { public: bool canWinNim(int n) { return (n % 4); } }; 阅读全文
posted @ 2016-09-27 19:43 blankquiz 阅读(84) 评论(0) 推荐(0)
摘要:// My own solutionclass Solution { public: string reverseString(string s) { return string(s.crbegin(), s.crend()); } }; // My own solutionclass Solution { public: string reverse... 阅读全文
posted @ 2016-09-26 17:31 blankquiz 阅读(108) 评论(0) 推荐(0)
摘要:// My own solutionclass Solution { public: vector<int> countBits(int num) { vector<int> ret = {0}; if(num <= 0) return ret; ret.push_back(1); int i = 阅读全文
posted @ 2016-09-25 11:52 blankquiz 阅读(151) 评论(0) 推荐(0)