摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations. 阅读全文
posted @ 2014-07-01 23:59 jdflyfly 阅读(222) 评论(0) 推荐(0)
摘要: Reverse a linked list from position m to n. Do it in-place and in one-pass. 阅读全文
posted @ 2014-07-01 23:56 jdflyfly 阅读(186) 评论(1) 推荐(0)
摘要: Given a collection of integers that might contain duplicates, S, return all possible subsets. 阅读全文
posted @ 2014-07-01 23:51 jdflyfly 阅读(228) 评论(0) 推荐(0)
摘要: Given an encoded message containing digits, determine the total number of ways to decode it. 阅读全文
posted @ 2014-07-01 23:44 jdflyfly 阅读(176) 评论(0) 推荐(0)
摘要: The gray code is a binary numeral system where two successive values differ in only one bit. 阅读全文
posted @ 2014-07-01 23:15 jdflyfly 阅读(216) 评论(0) 推荐(0)
摘要: Given two sorted integer arrays A and B, merge B into A as one sorted array. 阅读全文
posted @ 2014-07-01 22:23 jdflyfly 阅读(127) 评论(0) 推荐(0)
摘要: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. 阅读全文
posted @ 2014-07-01 22:20 jdflyfly 阅读(224) 评论(0) 推荐(0)
摘要: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. 阅读全文
posted @ 2014-07-01 22:15 jdflyfly 阅读(227) 评论(0) 推荐(0)