首页
学习
活动
专区
圈层
工具
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
首页标签traversal

#traversal

中序遍历 In-order Traversal

jack.yang

中序遍历(In-order Traversal)在二叉搜索树(BST)中非常有用,因为它会按照升序的方式访问节点。但在其他类型的树中,这种顺序就不一定了。

17010

前序遍历Pre-order Traversal

jack.yang

前序遍历(Pre-order Traversal):首先访问根节点,然后递归地访问左子树,最后递归地访问右子树。

11400

层次遍历-Level Order Traversal

jack.yang

层次遍历(Level Order Traversal):也称为广度优先遍历(Breadth-First Traversal)。它按照层次顺序(从根节点开始,然后...

11910

Discuz the user traversal Poc

phith0n

我们随便点进一个discuz论坛,在地址后面加?1,有的论坛就会显示uid=1的用户资料页(或是家园空间首页,取决于这个论坛有没有开通家园):

22410

144. Binary Tree Preorder Traversal(二叉树的前序遍历)

砖业洋__

题目地址:https://leetcode.com/problems/binary-tree-preorder-traversal/description/

18830

根据前序和中序(后序和中序)遍历构造树 #算法#

梦飞

腾讯科技(深圳)有限公司 | 后台开发 (已认证)

Given preorder and inorder traversal of a tree, construct the binary tree. 根据前序...

28920

Leetcode 题目解析之 Construct Binary Tree from Inorder and Postorder Traversal

ruochen

Given inorder and postorder traversal of a tree, construct the binary tree.

1.2K30

关于前中后序排列

太阳影的社区

腾讯科技(深圳)有限公司 | 客户端开发 (已认证)

重点看“根”的位置,在最前面就是前序,中间就是中序,后面就是后序。补充一点,上述排列都是DFT(深度优先排列,Depth First Traversals)。另...

88920

LeetCode 0144 - Binary Tree Preorder Traversal

Reck Zhang

Tencent | Game Developer (已认证)

Given a binary tree, return the preorder traversal of its nodes’ values.

19020

LeetCode 0145 - Binary Tree Postorder Traversal

Reck Zhang

Tencent | Game Developer (已认证)

Given a binary tree, return the postorder traversal of its nodes’ values.

23920

LeetCode 0102 - Binary Tree Level Order Traversal

Reck Zhang

Tencent | Game Developer (已认证)

Given a binary tree, return the level order traversal of its nodes’ values. (ie,...

19720

LeetCode 0103 - Binary Tree Zigzag Level Order Traversal

Reck Zhang

Tencent | Game Developer (已认证)

Given a binary tree, return the zigzag level order traversal of its nodes’ value...

18420

LeetCode 0105 - Construct Binary Tree from Preorder and Inorder Traversal

Reck Zhang

Tencent | Game Developer (已认证)

Given preorder and inorder traversal of a tree, construct the binary tree.

20740

LeetCode 0106 - Construct Binary Tree from Inorder and Postorder Traversal

Reck Zhang

Tencent | Game Developer (已认证)

Given inorder and postorder traversal of a tree, construct the binary tree.

17330

LeetCode 0107 - Binary Tree Level Order Traversal II

Reck Zhang

Tencent | Game Developer (已认证)

Given a binary tree, return the bottom-up level order traversal of its nodes’ va...

16340

LeetCode 0094 - Binary Tree Inorder Traversal

Reck Zhang

Tencent | Game Developer (已认证)

Given a binary tree, return the inorder traversal of its nodes’ values.

18220

Tree - 144. Binary Tree Preorder Traversal

ppxai

Given a binary tree, return the preorder traversal of its nodes' values.

31220

Tree - 94. Binary Tree Inorder Traversal

ppxai

Given a binary tree, return the inorder traversal of its nodes' values.

33010

Tree - 107. Binary Tree Level Order Traversal II

ppxai

107. Binary Tree Level Order Traversal II

27920

Tree - 103. Binary Tree Zigzag Level Order Traversal

ppxai

103. Binary Tree Zigzag Level Order Traversal

25610
领券