摘要:
Sort a linked list inO(nlogn) time using constant space complexity./** * Definition for singly-linked list. * struct ListNode { * int val; * L... 阅读全文
posted @ 2014-06-03 16:37
Sara Chi
阅读(126)评论(0)推荐(0)
编辑
摘要:
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line./** * Definition for a point. * struct Point { * ... 阅读全文
posted @ 2014-06-03 11:38
Sara Chi
阅读(178)评论(0)推荐(0)
编辑
摘要:
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express... 阅读全文
posted @ 2014-05-21 23:48
Sara Chi
阅读(124)评论(0)推荐(0)
编辑