数据结构与算法
雩山贡水
这个作者很懒,什么都没留下…
展开
-
LeetCode:Reverse Words in a String (Java)
Reverse Words in a StringGiven an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".原创 2014-08-06 00:59:58 · 688 阅读 · 0 评论 -
LeetCode:Evaluate Reverse Polish Notation (Java)
Evaluate Reverse Polish NotationEvaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another expressi原创 2014-08-06 01:09:20 · 653 阅读 · 0 评论 -
LeetCode:Insertion Sort List (Java)
题目:Insertion Sort List原创 2014-08-08 01:07:47 · 527 阅读 · 0 评论 -
LeetCode:Sort List (Java)
题目:Sort ListSort a linked list in O(n log n) time using constant space complexity.思路:O原创 2014-08-08 01:04:08 · 393 阅读 · 0 评论 -
LeetCode:Max Points on a Line (Java)
题目:Max Points on a LineGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.思路:代码:原创 2014-08-06 01:25:23 · 530 阅读 · 0 评论