### LeetCode OJ

0 已关注
10篇博文
• #### LeetCode 10 Linked List Cycle II

Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Fol...

2014-08-22 10:13
480
• #### LeetCode 9 Reorder List

Given a singly linked list L: L0->L1->...Ln-1->Ln. reorder it to: L0->Ln->L1-

2014-08-21 17:34
406
• #### LeetCode 8 Binary Tree Preorder Traversal

Given a binary tree, return the preorder traversal of its nodes' values. f

2014-08-21 10:05
552
• #### LeetCode 7 Binary Tree Postorder Traversal

Given a binary tree, return the postorder traversal of its nodes' values. For

2014-08-20 18:10
538
• #### LeetCode 6 LRU Cache

Design and implement a data structure for Least Recently Used (LRU) cache.

2014-08-20 10:27
915
• #### LeetCode 5 Insertion Sort List

Sort a linked list using insertion sort. 分析： 常规链表操作，

2014-08-17 14:28
579
• #### LeetCode 4 Sort List

Sort a linked list in O(nlogn) time using constant space complexity. 分析：

2014-08-17 11:08
627
• #### LeetCode 3 Max Points on a Line

Given n points on a 2D plane, find the maximum number of points that lie on

2014-08-16 11:54
696
• #### LeetCode 2 Evaluate Reverse Polish Notation

Evaluate the value of arithmetic expression in Reverse Polish Notation. Valid operator are +,-,

2014-08-16 10:26
437
• #### LeetCode 1 Reverse Words in a String

Given an input string, reverse the string word by word. For example: Given s = "the sky"

2014-08-15 21:52
600