Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:
其他好文 时间:
2014-09-05 05:31:40
阅读次数:
176
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:
其他好文 时间:
2014-09-05 05:31:30
阅读次数:
224
重新写了下,代码看着清爽多了 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x...
分类:
其他好文 时间:
2014-09-04 20:54:00
阅读次数:
162
SETFACL(1) Access Control Lists SETFACL(1)NAME setfacl - set file access control listsSYNOPSIS setfacl [-bkndRLPvh] [{-m|-x} acl_spec] [{-M|-X} acl_f....
分类:
系统相关 时间:
2014-09-04 16:28:29
阅读次数:
522
在执行之前:merge into UserInfo u using chartinfo c on u.UserId=c.UserId when matched and u.UserName=c.UserName then update set u.lastUpdate=c.LastUpdate wh...
分类:
数据库 时间:
2014-09-04 13:14:59
阅读次数:
187
One of the UI features of lists on Windows Phone 7 is that the "scroll bars" don't really act like traditional scroll bars; they are non-interactive a...
分类:
其他好文 时间:
2014-09-04 01:34:37
阅读次数:
187
LeetCode: Search in Rotated Sorted ArraySuppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 ...
分类:
其他好文 时间:
2014-09-03 23:57:17
阅读次数:
467
LeetCode: Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear only once. For example,Giv...
分类:
其他好文 时间:
2014-09-03 22:27:17
阅读次数:
311
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:
其他好文 时间:
2014-09-03 21:06:47
阅读次数:
241