| 15 | class Solution { |
| 16 | public: |
| 17 | ListNode* reverseLL(ListNode* head) |
| 18 | { |
| 19 | if(head == NULL || head->next == NULL) |
| 20 | return head; |
| 21 | ListNode *new_head = reverseLL(head->next); |
| 22 | ListNode *front = head->next; |
| 23 | front->next = head; |
| 24 | head->next = NULL; |
| 25 | return new_head; |
| 26 | } |
| 27 | ListNode* findKthNode(ListNode* temp, int k) |
| 28 | { |
| 29 | for(int i = 1; i<k;i++) |
nothing calls this directly
no outgoing calls
no test coverage detected