- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 Linked List Cycle
Description: Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space?
2014-08-23 12:35:42 187
原创 Binary Tree Preorder Traversal
Description: Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,2,3]. Note: Recursive
2014-08-23 12:04:32 172
原创 Binary Tree Postorder Traversal
Description: Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [3,2,1]. Note: Recursive
2014-08-23 12:03:19 137
原创 LRU Cache
Description: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive)
2014-08-23 11:52:16 249
原创 Insertion Sort List
Description: Sort a linked list using insertion sort.
2014-08-23 10:31:17 131
原创 Sort List
Description: Sort a linked list in O(n log n) time using constant space complexity.
2014-08-23 09:48:33 167
原创 Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 思路: 这是一道
2014-08-22 23:47:23 127
原创 Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another expression. Some examples: ["2", "1", "+",
2014-08-22 22:48:31 161
原创 Reverse Words in a String
Description: Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Clarification: What constitutes a word? A sequence o
2014-08-22 22:22:49 233
netlink学习文档
2013-10-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人