摘要:
我自己的方法是用的递归,毕竟也是接触了一点点点点点点 scheme 的骚年是吧,代码如下:ListNode* reverseList(ListNode* head) { if (head == nullptr){ return nullptr; } ListN... 阅读全文
posted @ 2015-08-04 17:15
wu_overflow
阅读(161)
评论(0)
推荐(0)
摘要:
bool containsDuplicate(vector& nums) { return !(nums.size() == unordered_set(nums.cbegin(), nums.cend()).size());} 阅读全文
posted @ 2015-08-04 08:15
wu_overflow
阅读(287)
评论(0)
推荐(0)
摘要:
class Stack {private: queue que;public: // Push element x onto stack. void push(int x) { que.push(x); } // Removes the eleme... 阅读全文
posted @ 2015-08-04 07:47
wu_overflow
阅读(141)
评论(0)
推荐(0)
浙公网安备 33010602011771号