摘要: Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv... 阅读全文
posted @ 2015-02-13 04:33 Sherry是小太阳 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Quick Sort使用了Divide and Concur的思想: 找一个基准数, 把小于基准数的数都放到基准数之前, 把大于基准数的数都放到基准数之后Worst case: O(n^2)Average case: O(nlogN)步骤:初始的数组 Array a[]:01234567895173... 阅读全文
posted @ 2015-02-11 08:35 Sherry是小太阳 阅读(1336) 评论(0) 推荐(0) 编辑