随笔分类 - Leetcode
摘要:// My own solutionclass Solution { public: bool canWinNim(int n) { return (n % 4); } };
阅读全文
摘要:// My own solutionclass Solution { public: string reverseString(string s) { return string(s.crbegin(), s.crend()); } }; // My own solutionclass Solution { public: string reverse...
阅读全文
摘要:// 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 =
阅读全文

浙公网安备 33010602011771号