会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
YoungAndSimple
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2015年8月7日
8.7 114 Flatten Binary Tree to Linked List
摘要: Question:Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The fl...
阅读全文
posted @ 2015-08-07 23:28 YoungAndSimple
阅读(109)
评论(0)
推荐(0)
2015年8月5日
8.4 LeetCode 95, 96 Unique BST I & II
摘要: // 95 return all unique BST roots.public ArrayList generateTrees(int n) { // 2nd ans // Start typing your Java solution below //...
阅读全文
posted @ 2015-08-05 08:03 YoungAndSimple
阅读(161)
评论(0)
推荐(0)
2015年8月4日
8.3 LeetCode230 Return the kth smallest element of a BST
摘要: The Kth smallest element in a BST
阅读全文
posted @ 2015-08-04 08:11 YoungAndSimple
阅读(119)
评论(0)
推荐(0)
8.2 leetcode 102,107. binary tree level order traversal I & II:(up-down & bottom-up)
摘要: 1 public class Solution { 2 public List> levelOrder(TreeNode root) { 3 List> res = new ArrayList>(); 4 if(root == null) return ...
阅读全文
posted @ 2015-08-04 05:13 YoungAndSimple
阅读(162)
评论(0)
推荐(0)
上一页
1
2
公告