码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
leetcode 104. Maximum Depth of Binary Tree
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 le...
分类:其他好文   时间:2015-02-17 19:54:58    阅读次数:146
leetcode 107. Binary Tree Level Order Traversal II
Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exa...
分类:其他好文   时间:2015-02-17 19:53:57    阅读次数:197
leetcode 103. Binary Tree Zigzag Level Order Traversal
Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level and al...
分类:其他好文   时间:2015-02-17 19:52:54    阅读次数:169
leetcode 102. Binary Tree Level Order Traversal
Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2...
分类:其他好文   时间:2015-02-17 19:52:50    阅读次数:171
leetcode 100. Same Tree
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 an...
分类:其他好文   时间:2015-02-17 17:38:02    阅读次数:111
leetcode 101. Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:其他好文   时间:2015-02-17 17:37:13    阅读次数:123
[LeetCode] Convert Sorted Array to Binary Search Tree 将有序数组转为二叉搜索树
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.这道题是要将有序数组转为二叉搜索树,所谓二叉搜索树,是一种始终满足左 &num) { ret...
分类:编程语言   时间:2015-02-17 15:18:17    阅读次数:201
leetcode_112_Path Sum
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Path Sum Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For ex...
分类:其他好文   时间:2015-02-17 14:10:15    阅读次数:145
leetcode_104_Maximum Depth of Binary Tree
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Maximum Depth of Binary Tree 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...
分类:其他好文   时间:2015-02-17 10:25:14    阅读次数:168
leetcode_110_ Balanced Binary Tree
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢  Balanced Binary Tree Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which th...
分类:其他好文   时间:2015-02-17 10:24:07    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!