LeetCode
h_hechen
这个作者很懒,什么都没留下…
展开
-
【LeetCode】【Linked List】Merge Two Sorted Lists
【21】 Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.题译:合并两个排序的链接列表,并将其作为新列表返回。 新列表应该通原创 2017-03-02 13:31:54 · 247 阅读 · 0 评论 -
【Leetcode】【Stack】【String】Remove Duplicates from Sorted Array
【20】Valid ParenthesesGiven a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.The brackets must close in the correct order, “()” and “()[]{}原创 2017-03-02 13:41:47 · 216 阅读 · 0 评论 -
【Leetcode】【Array】Remove Duplicates from Sorted Array
【26】Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another arr原创 2017-02-28 00:03:23 · 183 阅读 · 0 评论