面试准备

最近改动

更新题目 带 parent 指针的二叉树 DFS

题目 everpure-oa-dfs-parent · 修改(rev 5) · cc · 2026-10-27 12:09

body

@@ -40,5 +40,3 @@
 - 时间紧时先把访问顺序写成一串数字,再对照题目要求的分隔格式。
 
-## 英文讲法
-
 > [!say] I'd just simulate it on paper: keep a visited set and a call stack, and at each node try right child, then parent, then left child, skipping anything already visited.