摘要:
题目链接Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another exp... 阅读全文
posted @ 2013-11-28 22:42
tenos
阅读(3253)
评论(0)
推荐(0)
摘要:
题目链接Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NUL... 阅读全文
posted @ 2013-11-28 22:25
tenos
阅读(584)
评论(0)
推荐(0)
摘要:
题目链接Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["2... 阅读全文
posted @ 2013-11-28 22:20
tenos
阅读(828)
评论(0)
推荐(0)
摘要:
LeetCode:Unique Binary Search TreesGivenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there... 阅读全文
posted @ 2013-11-28 22:09
tenos
阅读(1727)
评论(0)
推荐(0)
摘要:
题目链接Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2.For example,Given:s1="aabcc",s2="dbbca",Whens3="aadbbcbcac", return true.When... 阅读全文
posted @ 2013-11-28 21:14
tenos
阅读(694)
评论(0)
推荐(0)
摘要:
题目链接Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains on... 阅读全文
posted @ 2013-11-28 20:32
tenos
阅读(709)
评论(0)
推荐(0)

浙公网安备 33010602011771号