LeetCode OJ
文章平均质量分 64
总结LeetCode Online Judge上面的题目,对解法进行分析归类
JavyZheng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 10 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 ex原创 2014-08-22 10:13:44 · 695 阅读 · 0 评论 -
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:47 · 609 阅读 · 0 评论 -
LeetCode 8 Binary Tree Preorder Traversal
Given a binary tree, return the preorder traversal of its nodes' values.f原创 2014-08-21 10:05:32 · 774 阅读 · 0 评论 -
LeetCode 7 Binary Tree Postorder Traversal
Given a binary tree, return the postorder traversal of its nodes' values.For原创 2014-08-20 18:10:25 · 860 阅读 · 0 评论 -
LeetCode 6 LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache.原创 2014-08-20 10:27:21 · 1182 阅读 · 0 评论 -
LeetCode 5 Insertion Sort List
Sort a linked list using insertion sort.分析:常规链表操作,原创 2014-08-17 14:28:29 · 797 阅读 · 0 评论 -
LeetCode 4 Sort List
Sort a linked list in O(nlogn) time using constant space complexity.分析:原创 2014-08-17 11:08:18 · 840 阅读 · 0 评论 -
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:07 · 961 阅读 · 0 评论 -
LeetCode 2 Evaluate Reverse Polish Notation
Evaluate the value of arithmetic expression in Reverse Polish Notation.Valid operator are +,-,原创 2014-08-16 10:26:58 · 632 阅读 · 0 评论 -
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:46 · 818 阅读 · 0 评论
分享