mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2026-02-02 18:39:09 +08:00
更新图片链接
This commit is contained in:
4
problems/0538.把二叉搜索树转换为累加树.md
Normal file → Executable file
4
problems/0538.把二叉搜索树转换为累加树.md
Normal file → Executable file
@@ -18,7 +18,7 @@
|
||||
示例 1:
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
* 输入:[4,1,6,0,2,5,7,null,null,null,3,null,null,null,8]
|
||||
* 输出:[30,36,21,36,35,26,15,null,null,null,33,null,null,null,8]
|
||||
@@ -67,7 +67,7 @@
|
||||
遍历顺序如图所示:
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
本题依然需要一个pre指针记录当前遍历节点cur的前一个节点,这样才方便做累加。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user