会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Jabnih
https://github.com/jabnih
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
2015年6月18日
LeetCode —— Invert Binary Tree
摘要: struct TreeNode* invertTree(struct TreeNode* root){ if ( NULL == root ) { return NULL; } if ( NULL == root->left && NULL == root->r...
阅读全文
posted @ 2015-06-18 19:09 Jabnih
阅读(124)
评论(0)
推荐(0)
2015年6月16日
LeetCode —— Merge k Sorted Lists
摘要: 1 /* 2 ** 算法的思路: 3 ** 1.将k个链表的首元素进行建堆 4 ** 2.从堆中取出最小的元素,放到链表中 5 ** 3.如果取出元素的有后续的元素,则放入堆中,若没有则转步骤2,直到堆为空 6 */ 7 8 9 #include 10 11 12...
阅读全文
posted @ 2015-06-16 23:11 Jabnih
阅读(217)
评论(0)
推荐(0)
上一页
1
2
3
4
5
公告