会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
好好学习 天天向上
2015年11月17日
[lintcode easy]Invert Binary Tree
摘要: Invert Binary TreeInvert a binary tree.Example 1 1 / \ / \2 3 => 3 2 / \ 4 4ChallengeDo it in recursion is accept...
阅读全文
posted @ 2015-11-17 04:39 一心一念
阅读(130)
评论(0)
推荐(0)
[lintcode easy]Reserve Linked list
摘要: Reverse Linked ListReverse a linked list.ExampleFor linked list 1->2->3, the reversed linked list is 3->2->1ChallengeReverse it in-place and in one-pa...
阅读全文
posted @ 2015-11-17 04:18 一心一念
阅读(137)
评论(0)
推荐(0)
[lintcode easy]Binary Tree Postorder Traversal
摘要: Binary Tree Postorder TraversalGiven a binary tree, return thepostordertraversal of its nodes' values.Given binary tree{1,#,2,3}, 1 \ 2 / ...
阅读全文
posted @ 2015-11-17 04:02 一心一念
阅读(120)
评论(0)
推荐(0)
[lintcode easy]Binary Tree Inorder Traversal
摘要: Binary Tree Inorder TraversalGiven a binary tree, return theinordertraversal of its nodes' values.Given binary tree{1,#,2,3}, 1 \ 2 / 3r...
阅读全文
posted @ 2015-11-17 03:36 一心一念
阅读(228)
评论(0)
推荐(0)
[lintcode easy]Binary Tree Preorder Traversal
摘要: Binary Tree Preorder TraversalGiven a binary tree, return the preorder traversal of its nodes' values.Given: 1 / \ 2 3 / \4 5return [1,2,4,5...
阅读全文
posted @ 2015-11-17 03:16 一心一念
阅读(162)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告