码迷,mamicode.com
首页 >  
搜索关键字:inorder    ( 706个结果
[LeetCode] Inorder Successor in BST II 二叉搜索树中的中序后继节点之二
Given a binary search tree and a node in it, find the in-order successor of that node in the BST. The successor of a node p is the node with the small ...
分类:其他好文   时间:2019-02-24 01:14:17    阅读次数:141
PAT 甲级 1086 Tree Traversals Again
https://pintia.cn/problem-sets/994805342720868352/problems/994805380754817024 An inorder binary tree traversal can be implemented in a non-recursive w ...
分类:其他好文   时间:2019-02-12 13:16:46    阅读次数:110
LeetCode-105-Construct Binary Tree from Preorder and Inorder Traversal
算法描述: Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For exa ...
分类:其他好文   时间:2019-02-03 11:08:11    阅读次数:193
LeetCode-106-Construct Binary Tree from Inorder and Postorder Traversal
算法描述: Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For ex ...
分类:其他好文   时间:2019-02-03 10:41:35    阅读次数:198
leetcode 94.Binary Tree Inorder Traversal 二叉树的中序遍历
递归算法C++代码: 非递归方法(迭代): C++代码: ...
分类:其他好文   时间:2019-01-29 11:00:13    阅读次数:136
PTA-1020——Tree Traversals
题目: Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed t ...
分类:其他好文   时间:2019-01-27 19:03:00    阅读次数:168
1020 Tree Traversals (25 分)
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou ...
分类:其他好文   时间:2019-01-06 14:22:02    阅读次数:165
285. Inorder Successor in BST - Medium
Given a binary search tree and a node in it, find the in-order successor of that node in the BST. Note: If the given node has no in-order successor in ...
分类:其他好文   时间:2019-01-01 11:16:38    阅读次数:153
106. Construct Binary Tree from Inorder and Postorder Traversal - Medium
Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For example, ...
分类:其他好文   时间:2019-01-01 11:14:07    阅读次数:143
94. Binary Tree Inorder Traversal - Medium
Given a binary tree, return the inorder traversal of its nodes' values. Example: Input: [1,null,2,3] 1 \ 2 / 3 Output: [1,3,2] Follow up: Recursive so ...
分类:其他好文   时间:2019-01-01 11:02:35    阅读次数:183
706条   上一页 1 ... 8 9 10 11 12 ... 71 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!