会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Pearl
Live simply. Live real.
博客园
首页
新随笔
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
10
下一页
2016年7月21日
[中等]寻找缺失的数
摘要: 题目来源:http://www.lintcode.com/zh-cn/problem/find-the-missing-number/ C++版 VS2012测试通过:
阅读全文
posted @ 2016-07-21 20:49 Pearl_zju
阅读(200)
评论(0)
推荐(0)
2016年7月15日
[中等]最大正方形
摘要: 题目来源:http://www.lintcode.com/zh-cn/problem/maximal-square/ 利用动态规划得到公式rst[i+1][j+1] = min(min(rst[i][j+1],rst[i+1][j]),rst[i][j])+1; 比如输入: 1 0 1 0 0 1
阅读全文
posted @ 2016-07-15 16:09 Pearl_zju
阅读(208)
评论(0)
推荐(0)
2016年7月2日
[容易]平衡二叉树
摘要: 题目来源:http://www.lintcode.com/zh-cn/problem/balanced-binary-tree/ C++版 VS2012测试通过: Python2.7版 spider测试通过:
阅读全文
posted @ 2016-07-02 23:15 Pearl_zju
阅读(178)
评论(0)
推荐(0)
2016年7月1日
Python生成器
摘要: 参考http://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/0014317799226173f45ce40636141b6abc8424e12b5fb27000
阅读全文
posted @ 2016-07-01 10:34 Pearl_zju
阅读(189)
评论(0)
推荐(0)
2016年6月30日
[容易]在二叉查找树中插入节点
摘要: 题目来源:http://www.lintcode.com/zh-cn/problem/insert-node-in-a-binary-search-tree/ C++版 VS2012测试通过: Python2.7版 spider测试通过:
阅读全文
posted @ 2016-06-30 23:19 Pearl_zju
阅读(316)
评论(0)
推荐(0)
2016年6月28日
[容易]落单的数
摘要: 题目来源:http://www.lintcode.com/zh-cn/problem/single-number/ 方法: 异或满足交换律,任意两个相同的数可以异或是0。0和任何数异或的结果是该数,那么最后的结果一定是落单的数字。 C++版 VS2012测试通过: Python2.7版 spider
阅读全文
posted @ 2016-06-28 20:33 Pearl_zju
阅读(365)
评论(0)
推荐(0)
2016年6月27日
[容易]中位数
摘要: 题目来源:http://www.lintcode.com/zh-cn/problem/median/ C++版 VS2012测试通过 方法一 方法二 Python2.7版 spider测试通过
阅读全文
posted @ 2016-06-27 21:39 Pearl_zju
阅读(201)
评论(0)
推荐(0)
2016年6月26日
[容易]二叉树的后序遍历
摘要: 题目来源:http://www.lintcode.com/zh-cn/problem/binary-tree-postorder-traversal/# C++版 VS2012测试通过
阅读全文
posted @ 2016-06-26 19:12 Pearl_zju
阅读(140)
评论(0)
推荐(0)
[容易]二叉树的中序遍历
摘要: 题目来源:http://www.lintcode.com/zh-cn/problem/binary-tree-inorder-traversal/# C++版 VS2012测试通过
阅读全文
posted @ 2016-06-26 16:35 Pearl_zju
阅读(174)
评论(0)
推荐(0)
[容易]二叉树的前序遍历
摘要: 题目来源:http://www.lintcode.com/zh-cn/problem/binary-tree-preorder-traversal/ C++版 VS2012测试通过 Python2.7版 spider测试通过
阅读全文
posted @ 2016-06-26 16:33 Pearl_zju
阅读(184)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
10
下一页
公告