Definition for singly-linked list.
| 2 | |
| 3 | // Definition for singly-linked list. |
| 4 | struct ListNode { |
| 5 | int val; |
| 6 | ListNode *next; |
| 7 | ListNode(int x) : val(x), next(NULL) {} |
| 8 | }; |
| 9 | |
| 10 | class Solution { |
| 11 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected