码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
Binary Tree Zigzag Level Order Traversal
Binary Tree Zigzag Level Order Traversal 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 alte...
分类:其他好文   时间:2015-08-11 12:14:03    阅读次数:108
【LeetCode-面试算法经典-Java实现】【110-Balanced Binary Tree(平衡二叉树)】
【110-Balanced Binary Tree(平衡二叉树)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a binary tree, determine if it is height-balanced.   For this problem, a height-balanced binary tree is defined as a binary...
分类:编程语言   时间:2015-08-11 08:34:51    阅读次数:252
【LeetCode-面试算法经典-Java实现】【112-Path Sum(路径和)】
【112-Path Sum(路径和)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  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...
分类:编程语言   时间:2015-08-11 08:34:13    阅读次数:147
【LeetCode-面试算法经典-Java实现】【111-Minimum Depth of Binary Tree(二叉树的最小深度)】
【111-Minimum Depth of Binary Tree(二叉树的最小深度)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a binary tree, find its minimum depth.   The minimum depth is the number of nodes along the shortest path from t...
分类:编程语言   时间:2015-08-11 08:33:30    阅读次数:128
8.10 [LeetCode] 173 Binary Tree Maximum Path Sum
QestionGiven a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, (the...
分类:其他好文   时间:2015-08-11 07:18:19    阅读次数:124
8.10 [LeetCode 173] Binary Search Tree Iterator
QuestionlinkImplement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will ret...
分类:其他好文   时间:2015-08-11 07:10:50    阅读次数:99
【LeetCode】96 - Unique Binary Search Trees
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:其他好文   时间:2015-08-11 07:01:19    阅读次数:122
【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-08-11 07:00:30    阅读次数:93
【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-08-11 00:12:30    阅读次数:158
LeetCode:Flatten Binary Tree to Linked List
//LeetCode:https://leetcode.com/problems/flatten-binary-tree-to-linked-list/ //Flatten Binary Tree to Linked List 114 //前序遍历,last是链表最后一个节点,然后使用前序遍历,遍历...
分类:其他好文   时间:2015-08-10 23:39:02    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!