摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2... 阅读全文
posted @ 2014-07-31 23:52 purejade 阅读(96) 评论(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->NULL.No... 阅读全文
posted @ 2014-07-31 22:57 purejade 阅读(74) 评论(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 only n... 阅读全文
posted @ 2014-07-31 22:35 purejade 阅读(80) 评论(0) 推荐(0) 编辑
摘要: Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig... 阅读全文
posted @ 2014-07-31 22:25 purejade 阅读(78) 评论(0) 推荐(0) 编辑
摘要: Ignoring files转自:https://help.github.com/articles/ignoring-filesFrom time to time, there are files you don't want Git to check in to GitHub. There are... 阅读全文
posted @ 2014-07-31 21:25 purejade 阅读(495) 评论(0) 推荐(0) 编辑