• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
xiaoba1203
记录leetcode之路
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页

2016年10月28日

leetcode 107 Binary Tree Level Order Traversal II ----- java
摘要: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For 阅读全文
posted @ 2016-10-28 18:10 xiaoba1203 阅读(208) 评论(0) 推荐(0)
 
leetcode 106 Construct Binary Tree from Inorder and Postorder Traversal----- java
摘要: Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. 和上一道题基本一样 根据 阅读全文
posted @ 2016-10-28 17:59 xiaoba1203 阅读(142) 评论(0) 推荐(0)
 
leetcode 105 Construct Binary Tree from Preorder and Inorder Traversal ----- java
摘要: Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. 给出前序遍历和中序遍历,然 阅读全文
posted @ 2016-10-28 17:35 xiaoba1203 阅读(361) 评论(0) 推荐(0)
 
 

2016年10月26日

leetcode 104 Maximum Depth of Binary Tree ----- java
摘要: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l 阅读全文
posted @ 2016-10-26 11:45 xiaoba1203 阅读(170) 评论(0) 推荐(0)
 
leetcode 103 Binary Tree Zigzag Level Order Traversal ----- java
摘要: Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and 阅读全文
posted @ 2016-10-26 11:22 xiaoba1203 阅读(136) 评论(0) 推荐(0)
 
 

2016年10月25日

leetcode 102 Binary Tree Level Order Traversal ----- java
摘要: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3 阅读全文
posted @ 2016-10-25 23:46 xiaoba1203 阅读(137) 评论(0) 推荐(0)
 
leetcode 99 Recover Binary Search Tree ----- java
摘要: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note:A solution using O(n) space i 阅读全文
posted @ 2016-10-25 23:25 xiaoba1203 阅读(742) 评论(0) 推荐(0)
 
leetcode 101 Symmetric Tree ----- java
摘要: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet 阅读全文
posted @ 2016-10-25 19:32 xiaoba1203 阅读(148) 评论(0) 推荐(0)
 
leetcode 100 Same Tree ----- java
摘要: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a 阅读全文
posted @ 2016-10-25 19:00 xiaoba1203 阅读(144) 评论(0) 推荐(0)
 
leetcode 98 Validate Binary Search Tree ----- java
摘要: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only 阅读全文
posted @ 2016-10-25 18:16 xiaoba1203 阅读(353) 评论(0) 推荐(0)
 
 
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3