摘要:
//hashmap implement with STL class Solution { public: vector> groupAnagrams(vector& strs) { // sort(strs.begin(),strs.end()); //sort all the element map>hashmap; fo... 阅读全文
posted @ 2016-09-15 21:27
zeroArn
阅读(141)
评论(0)
推荐(0)
摘要:
1 //water 2 class Solution { 3 public: 4 int removeElement(vector& nums, int val) { 5 for(vector::iterator it=nums.begin();it!=nums.end();) 6 { 7 if(*it == val)... 阅读全文
posted @ 2016-09-15 01:07
zeroArn
阅读(107)
评论(0)
推荐(0)
摘要:
water class Solution { public: int removeDuplicates(vector& nums) { for(vector::iterator it=nums.begin();it!=nums.end();) { int cur=*it; it++; ... 阅读全文
posted @ 2016-09-15 01:01
zeroArn
阅读(95)
评论(0)
推荐(0)
摘要:
居然把头插法写错了,debug了一个多小时 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) 阅读全文
posted @ 2016-09-15 00:38
zeroArn
阅读(112)
评论(0)
推荐(0)

浙公网安备 33010602011771号