![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
helperiter
这个作者很懒,什么都没留下…
展开
-
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 · 163 阅读 · 0 评论 -
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 · 190 阅读 · 0 评论 -
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 · 175 阅读 · 0 评论 -
Sort List
Description: Sort a linked list in O(n log n) time using constant space complexity.原创 2014-08-23 09:48:33 · 170 阅读 · 0 评论 -
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 · 236 阅读 · 0 评论 -
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 · 131 阅读 · 0 评论 -
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 · 141 阅读 · 0 评论 -
Insertion Sort List
Description: Sort a linked list using insertion sort.原创 2014-08-23 10:31:17 · 132 阅读 · 0 评论 -
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 · 252 阅读 · 0 评论