2014年12月27日

摘要: Interleaving StringGiven s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.For example,Given:s1 = "aabcc",s2 = "dbbca",When s3 = ... 阅读全文
posted @ 2014-12-27 21:23 Yu's Garden 阅读(742) 评论(0) 推荐(0) 编辑
摘要: Scramble StringGiven a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible... 阅读全文
posted @ 2014-12-27 20:38 Yu's Garden 阅读(5081) 评论(0) 推荐(1) 编辑
摘要: Longest Palindromic Substring-- HARD 级别Question SolutionGiven a string S, find the longest palindromic substring in S. You may assume that the maximum... 阅读全文
posted @ 2014-12-27 19:36 Yu's Garden 阅读(3083) 评论(0) 推荐(1) 编辑
摘要: Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ... 阅读全文
posted @ 2014-12-27 18:41 Yu's Garden 阅读(588) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted List IIGiven a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the or... 阅读全文
posted @ 2014-12-27 10:05 Yu's Garden 阅读(593) 评论(0) 推荐(0) 编辑

导航