摘要:
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, givens="aab",Return [ ["aa","b"], ["a","a","b"] ]Discusspublic class Solution { public ArrayL 阅读全文
posted @ 2014-02-10 11:34
Averill Zheng
阅读(148)
评论(0)
推荐(0)
摘要:
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.method 1: use PriorityQueue (simple)/** * Definition f... 阅读全文
posted @ 2014-02-10 09:55
Averill Zheng
阅读(141)
评论(0)
推荐(0)
摘要:
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm... 阅读全文
posted @ 2014-02-10 04:47
Averill Zheng
阅读(139)
评论(0)
推荐(0)
摘要:
Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,... 阅读全文
posted @ 2014-02-10 04:45
Averill Zheng
阅读(174)
评论(0)
推荐(0)

浙公网安备 33010602011771号