定义链表
| 7 | |
| 8 | // 定义链表 |
| 9 | struct ListNode { |
| 10 | int val; |
| 11 | ListNode *next; |
| 12 | ListNode() : val(0), next(nullptr) {} |
| 13 | ListNode(int x) : val(x), next(nullptr) {} |
| 14 | ListNode(int x, ListNode *next) : val(x), next(next) {} |
| 15 | }; |
| 16 | |
| 17 | |
| 18 | // 迭代法合并链表 |
nothing calls this directly
no outgoing calls
no test coverage detected