Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 03d1841

Browse files
authoredSep 30, 2020
Create Readme.md
1 parent 7214a58 commit 03d1841

File tree

1 file changed

+5
-0
lines changed
  • Linked_List/369.Plus-One-Linked-List

1 file changed

+5
-0
lines changed
 
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### 369.Plus-One-Linked-List
2+
3+
链表题比较适合用递归来做,利用递归返回值来处理当前的节点,很方便。
4+
5+
本题的一个技巧就是当递归到节点为NULL时,令carry=1。其余的节点就是更新```node->val = node->val+carry```的处理。

0 commit comments

Comments
 (0)