File tree Expand file tree Collapse file tree 4 files changed +1646
-30
lines changed Expand file tree Collapse file tree 4 files changed +1646
-30
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ leetcode 测试
10
10
11
11
##### 包含的内容如下
12
12
13
+ https://leetcode.cn/problems/plus-one-linked-list/
14
+
13
15
https://leetcode.cn/problems/minimum-swaps-to-make-sequences-increasing/
14
16
15
17
https://leetcode.cn/problems/6eUYwP/
Original file line number Diff line number Diff line change
1
+ import { ListNode } from "../reverse-linked-list/ListNode.ts" ;
2
+ import po from "../plus-one/index.ts" ;
3
+ import { ListNodeToArray } from "../reverse-linked-list/ListNodeToArray.ts" ;
4
+ import { ArrayToListNode } from "../reverse-linked-list/ArrayToListNode.ts" ;
5
+ export default function plusOne ( digits : ListNode | null ) : ListNode | null {
6
+ return [ digits ] . map ( ListNodeToArray ) . map ( po ) . map ( ArrayToListNode ) [ 0 ] ;
7
+ }
You can’t perform that action at this time.
0 commit comments