码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
【leetcode】Binary Tree Right Side View(middle)
Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl...
分类:其他好文   时间:2015-04-16 23:42:02    阅读次数:159
BST迭代器
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Calling next() will return the next smallest number in the BST.Note: next() and has...
分类:其他好文   时间:2015-04-16 17:45:41    阅读次数:151
【LeetCode从零单刷】Binary Tree Inorder Traversal
菜鸡从零单刷 LeetCode 系列!...
分类:其他好文   时间:2015-04-16 14:22:19    阅读次数:104
leetcode || 95、Unique Binary Search Trees II
problem: Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program should return all 5 unique BST's shown bel...
分类:其他好文   时间:2015-04-16 12:34:36    阅读次数:111
leetcode_107题——Binary Tree Level Order Traversal II (二叉树,广度优先搜索,队列,栈)
Binary Tree Level Order Traversal IITotal Accepted:37829Total Submissions:122499My SubmissionsQuestionSolutionGiven a binary tree, return thebottom-up...
分类:其他好文   时间:2015-04-16 12:23:02    阅读次数:176
leetcode_111题——Minimum Depth of Binary Tree(二叉树,队列)
Minimum Depth of Binary TreeTotal Accepted:50435Total Submissions:173043My SubmissionsQuestionSolutionGiven a binary tree, find its minimum depth.The ...
分类:其他好文   时间:2015-04-16 12:10:14    阅读次数:125
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-04-16 12:08:03    阅读次数:148
leetcode || 94、Binary Tree Inorder Traversal
problem: Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,3,2]. Note: Rec...
分类:其他好文   时间:2015-04-16 10:27:18    阅读次数:119
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 the farthest leaf node. 这道题...
分类:其他好文   时间:2015-04-16 10:25:57    阅读次数:123
LeetCode --- 103. 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 a...
分类:其他好文   时间:2015-04-16 10:24:56    阅读次数:116
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!