- 博客(24)
- 收藏
- 关注
原创 Rotate List
Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL.
2014-08-24 10:41:04 352
原创 Merge Two Sorted Lists
比较简单,自己搞定 Merge 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. 分析:
2014-08-23 22:51:04 414
原创 Remove Duplicates from Sorted List II
这道题刚开始感觉有点复杂,后面还是做出来了。 不过看了网上的答案,有更易于思考的角度 Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Giv
2014-08-23 12:09:36 403
原创 Remove Duplicates from Sorted List
算是第一次一次AC的题 Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 分析: 1
2014-08-23 08:48:16 368
原创 Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you solve it without using extra space?
2014-08-23 08:23:13 388
原创 Linked List Cycle
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param head, a ListNode # @return a boo
2014-08-23 06:35:00 612
原创 PBS 命令
PBS 查考: 1. http://lynn56.blog.163.com/blog/static/138187862010104113934423/
2014-08-13 08:12:38 1287
原创 protobuf
以下的文字基本基于这p http://blog.csdn.net/flyan338/article/details/8448518
2014-08-11 07:04:22 1434
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人