码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
【LeetCode-面试算法经典-Java实现】【145-Binary Tree Postorder Traversal(二叉树非递归后序遍历)】
【144-Binary Tree Postorder Traversal(二叉树非递归后序遍历)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a binary tree, return the postorder traversal of its nodes’ values.   For example:   Given binary tree {1,...
分类:编程语言   时间:2015-08-19 08:15:55    阅读次数:207
【LeetCode-面试算法经典-Java实现】【144-Binary Tree Preorder Traversal(二叉树非递归前序遍历)】
【144-Binary Tree Preorder Traversal(二叉树非递归前序遍历)(未完成)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a binary tree, return the preorder traversal of its nodes’ values.   For example:   Given binary tree...
分类:编程语言   时间:2015-08-19 08:15:39    阅读次数:869
129 Sum Root to Leaf Numbers
129 Sum Root to Leaf Numbers链接:https://leetcode.com/problems/sum-root-to-leaf-numbers/ 问题描述: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An...
分类:其他好文   时间:2015-08-19 07:08:42    阅读次数:176
100 Same Tree
100 Same Tree链接:https://leetcode.com/problems/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 structurall...
分类:其他好文   时间:2015-08-19 07:08:34    阅读次数:146
101 Symmetric Tree
101 Symmetric Tree链接:https://leetcode.com/problems/symmetric-tree/ 问题描述: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree...
分类:其他好文   时间:2015-08-19 07:08:32    阅读次数:143
96 Unique Binary Search Trees
96 Unique Binary Search Trees链接:https://leetcode.com/problems/unique-binary-search-trees/ 问题描述: Given n, how many structurally unique BST’s (binary search trees) that store values 1…n?For example, G...
分类:其他好文   时间:2015-08-19 07:08:28    阅读次数:126
98 Validate Binary Search Tree
98 Validate Binary Search Tree链接:https://leetcode.com/problems/validate-binary-search-tree/ 问题描述: Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as...
分类:其他好文   时间:2015-08-19 01:59:06    阅读次数:171
leetcode - Same Tree
leetcode -Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are struct...
分类:其他好文   时间:2015-08-19 00:20:59    阅读次数:121
[Leetcode] Count Complete Tree Nodes
Count Complete Tree NodesGiven acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary...
分类:其他好文   时间:2015-08-18 21:13:49    阅读次数:113
【LeetCode】226. Invert Binary Tree
题目:Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This problem was inspired byt...
分类:其他好文   时间:2015-08-18 18:35:29    阅读次数:72
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!