深度优先搜索 标签
深度优先搜索
共 135 篇内容。
- 94. Binary Tree Inorder Traversal 二叉树的中序遍历
- 98. Validate Binary Search Tree 验证二叉搜索树
- 99. Recover Binary Search Tree 恢复二叉搜索树
- 100. Same Tree 相同的树
- 101. Symmetric Tree 对称二叉树
- 104. Maximum Depth of Binary Tree 二叉树的最大深度
- 111. Minimum Depth of Binary Tree 二叉树的最小深度
- 112. Path Sum 路径总和
- 113. Path Sum II 路径总和 II
- 114. Flatten Binary Tree to Linked List 二叉树展开为链表
- 116. Populating Next Right Pointers in Each Node 填充每个节点的下一个右侧节点指针
- 117. Populating Next Right Pointers in Each Node II 填充每个节点的下一个右侧节点指针 II
- 124. Binary Tree Maximum Path Sum 二叉树中的最大路径和
- 129. Sum Root to Leaf Numbers 求根节点到叶节点数字之和
- 133. Clone Graph 克隆图
- 144. Binary Tree Preorder Traversal 二叉树的前序遍历
- 145. Binary Tree Postorder Traversal 二叉树的后序遍历
- 156. Binary Tree Upside Down 上下翻转二叉树
- 199. Binary Tree Right Side View 二叉树的右视图
- 200. Number of Islands 岛屿数量
- 207. Course Schedule 课程表
- 210. Course Schedule II 课程表 II
- 211. Design Add and Search Words Data Structure 添加与搜索单词 - 数据结构设计
- 222. Count Complete Tree Nodes 完全二叉树的节点个数
- 226. Invert Binary Tree 翻转二叉树
- 230. Kth Smallest Element in a BST 二叉搜索树中第K小的元素
- 235. Lowest Common Ancestor of a Binary Search Tree 二叉搜索树的最近公共祖先
- 236. Lowest Common Ancestor of a Binary Tree 二叉树的最近公共祖先
- 257. Binary Tree Paths 二叉树的所有路径
- 270. Closest Binary Search Tree Value 最接近的二叉搜索树值
- 297. Serialize and Deserialize Binary Tree 二叉树的序列化与反序列化
- 310. Minimum Height Trees 最小高度树
- 323. Number of Connected Components in an Undirected Graph 无向图中连通分量的数目
- 329. Longest Increasing Path in a Matrix 矩阵中的最长递增路径
- 332. Reconstruct Itinerary 重新安排行程
- 333. Largest BST Subtree 最大 BST 子树
- 337. House Robber III 打家劫舍 III
- 339. Nested List Weight Sum 嵌套列表权重和
- 341. Flatten Nested List Iterator 扁平化嵌套列表迭代器
- 364. Nested List Weight Sum II 加权嵌套序列和 II
- 365. Water and Jug Problem 水壶问题
- 366. Find Leaves of Binary Tree 寻找二叉树的叶子节点
- 385. Mini Parser 迷你语法分析器
- 386. Lexicographical Numbers 字典序排数
- 388. Longest Absolute File Path 文件的最长绝对路径
- 399. Evaluate Division 除法求值
- 404. Sum of Left Leaves 左叶子之和
- 417. Pacific Atlantic Water Flow 太平洋大西洋水流问题
- 419. Battleships in a Board 甲板上的战舰
- 426. Convert Binary Search Tree to Sorted Doubly Linked List 将二叉搜索树转化为排序的双向链表
- 430. Flatten a Multilevel Doubly Linked List 扁平化多级双向链表
- 437. Path Sum III 路径总和 III
- 449. Serialize and Deserialize BST 序列化和反序列化二叉搜索树
- 463. Island Perimeter 岛屿的周长
- 472. Concatenated Words 连接词
- 490. The Maze 迷宫
- 501. Find Mode in Binary Search Tree 二叉搜索树中的众数
- 505. The Maze II 迷宫 II
- 508. Most Frequent Subtree Sum 出现次数最多的子树元素和
- 513. Find Bottom Left Tree Value 找树左下角的值
- 515. Find Largest Value in Each Tree Row 在每个树行中找最大值
- 529. Minesweeper 扫雷游戏
- 530. Minimum Absolute Difference in BST 二叉搜索树的最小绝对差
- 536. Construct Binary Tree from String 从字符串生成二叉树
- 538. Convert BST to Greater Tree 把二叉搜索树转换为累加树
- 543. Diameter of Binary Tree 二叉树的直径
- 547. Number of Provinces 省份数量
- 559. Maximum Depth of N-ary Tree N 叉树的最大深度
- 563. Binary Tree Tilt 二叉树的坡度
- 565. Array Nesting 数组嵌套
- 572. Subtree of Another Tree 另一棵树的子树
- 589. N-ary Tree Preorder Traversal N 叉树的前序遍历
- 590. N-ary Tree Postorder Traversal N 叉树的后序遍历
- 606. Construct String from Binary Tree 根据二叉树创建字符串
- 617. Merge Two Binary Trees 合并二叉树
- 623. Add One Row to Tree 在二叉树中增加一行
- 637. Average of Levels in Binary Tree 二叉树的层平均值
- 652. Find Duplicate Subtrees 寻找重复的子树
- 653. Two Sum IV - Input is a BST 两数之和 IV - 输入 BST
- 655. Print Binary Tree 输出二叉树
- 662. Maximum Width of Binary Tree 二叉树最大宽度
- 663. Equal Tree Partition 均匀树划分
- 666. Path Sum IV 路径总和 IV
- 669. Trim a Binary Search Tree 修剪二叉搜索树
- 671. Second Minimum Node In a Binary Tree 二叉树中第二小的节点
- 672. Bulb Switcher II 灯泡开关 Ⅱ
- 684. Redundant Connection 冗余连接
- 687. Longest Univalue Path 最长同值路径
- 690. Employee Importance 员工的重要性
- 694. Number of Distinct Islands 不同岛屿的数量
- 695. Max Area of Island 岛屿的最大面积
- 721. Accounts Merge 账户合并
- 733. Flood Fill 图像渲染
- 743. Network Delay Time 网络延迟时间
- 753. Cracking the Safe 破解保险箱
- 756. Pyramid Transition Matrix 金字塔转换矩阵
- 765. Couples Holding Hands 情侣牵手
- 778. Swim in Rising Water 水位上升的泳池中游泳
- 783. Minimum Distance Between BST Nodes 二叉搜索树节点最小距离
- 785. Is Graph Bipartite? 判断二分图
- 787. Cheapest Flights Within K Stops K 站中转内最便宜的航班
- 797. All Paths From Source to Target 所有可能的路径
- 802. Find Eventual Safe States 找到最终的安全状态
- 814. Binary Tree Pruning 二叉树剪枝
- 839. Similar String Groups 相似字符串组
- 841. Keys and Rooms 钥匙和房间
- 851. Loud and Rich 喧闹和富有
- 863. All Nodes Distance K in Binary Tree 二叉树中所有距离为 K 的结点
- 865. Smallest Subtree with all the Deepest Nodes 具有所有最深节点的最小子树
- 872. Leaf-Similar Trees 叶子相似的树
- 886. Possible Bipartition 可能的二分法
- 897. Increasing Order Search Tree 递增顺序搜索树
- 934. Shortest Bridge 最短的桥
- 938. Range Sum of BST 二叉搜索树的范围和
- 947. Most Stones Removed with Same Row or Column 移除最多的同行或同列石头
- 951. Flip Equivalent Binary Trees 翻转等价二叉树
- 959. Regions Cut By Slashes 由斜杠划分区域
- 965. Univalued Binary Tree 单值二叉树
- 968. Binary Tree Cameras 监控二叉树
- 971. Flip Binary Tree To Match Preorder Traversal 翻转二叉树以匹配先序遍历
- 979. Distribute Coins in Binary Tree 在二叉树中分配硬币
- 987. Vertical Order Traversal of a Binary Tree 二叉树的垂序遍历
- 988. Smallest String Starting From Leaf 从叶结点开始的最小字符串
- 993. Cousins in Binary Tree 二叉树的堂兄弟节点
- 1020. Number of Enclaves 飞地的数量
- 1022. Sum of Root To Leaf Binary Numbers 从根到叶的二进制数之和
- 1042. Flower Planting With No Adjacent 不邻接植花
- 1102. Path With Maximum Minimum Value 得分最高的路径
- 1110. Delete Nodes And Return Forest 删点成林
- 1120. Maximum Average Subtree 子树的最大平均值
- 1161. Maximum Level Sum of a Binary Tree 最大层内元素和
- 1305. All Elements in Two Binary Search Trees 两棵二叉搜索树中的所有元素
- 1462. Course Schedule IV 课程表 IV
- 1466. Reorder Routes to Make All Paths Lead to the City Zero 重新规划路线
- 1631. Path With Minimum Effort 最小体力消耗路径

评论与交流