会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Sherry是小太阳
事满则亏, 事缺则圆。
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
2015年2月13日
Leetcode 131 Palindrome Partitioning(DFS思路)
摘要: 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)
编辑
2015年2月11日
排序算法之快速排序(Quick Sort) -- 适用于Leetcode 75 Sort Colors
摘要: 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)
编辑
上一页
1
2
3
公告