auto commit
This commit is contained in:
parent
3b13fdfa73
commit
dc8759c620
|
@ -300,11 +300,11 @@ public class TreeLinkNode {
|
|||
|
||||
① 如果一个节点的右子树不为空,那么该节点的下一个节点是右子树的最左节点;
|
||||
|
||||
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/_u4E8C_u53C9_u6811_u7684_u4E0B_.gif" width="250"/> </div><br>
|
||||
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/b0611f89-1e5f-4494-a795-3544bf65042a.gif" width="220px"/> </div><br>
|
||||
|
||||
② 否则,向上找第一个左链接指向的树包含该节点的祖先节点。
|
||||
|
||||
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/_u4E8C_u53C9_u6811_u7684_u4E0B_1548504426508.gif" width="250"/> </div><br>
|
||||
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/95080fae-de40-463d-a76e-783a0c677fec.gif" width="200px"/> </div><br>
|
||||
|
||||
```java
|
||||
public TreeLinkNode GetNext(TreeLinkNode pNode) {
|
||||
|
|
BIN
docs/pics/95080fae-de40-463d-a76e-783a0c677fec.gif
Normal file
BIN
docs/pics/95080fae-de40-463d-a76e-783a0c677fec.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
docs/pics/b0611f89-1e5f-4494-a795-3544bf65042a.gif
Normal file
BIN
docs/pics/b0611f89-1e5f-4494-a795-3544bf65042a.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
notes/pics/95080fae-de40-463d-a76e-783a0c677fec.gif
Normal file
BIN
notes/pics/95080fae-de40-463d-a76e-783a0c677fec.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
notes/pics/b0611f89-1e5f-4494-a795-3544bf65042a.gif
Normal file
BIN
notes/pics/b0611f89-1e5f-4494-a795-3544bf65042a.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
|
@ -300,11 +300,11 @@ public class TreeLinkNode {
|
|||
|
||||
① 如果一个节点的右子树不为空,那么该节点的下一个节点是右子树的最左节点;
|
||||
|
||||
<div align="center"> <img src="pics/_u4E8C_u53C9_u6811_u7684_u4E0B_.gif" width="250"/> </div><br>
|
||||
<div align="center"> <img src="pics/b0611f89-1e5f-4494-a795-3544bf65042a.gif" width="220px"/> </div><br>
|
||||
|
||||
② 否则,向上找第一个左链接指向的树包含该节点的祖先节点。
|
||||
|
||||
<div align="center"> <img src="pics/_u4E8C_u53C9_u6811_u7684_u4E0B_1548504426508.gif" width="250"/> </div><br>
|
||||
<div align="center"> <img src="pics/95080fae-de40-463d-a76e-783a0c677fec.gif" width="200px"/> </div><br>
|
||||
|
||||
```java
|
||||
public TreeLinkNode GetNext(TreeLinkNode pNode) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user