(head *ListNode)
| 6 | } |
| 7 | |
| 8 | func reverseList(head *ListNode) *ListNode { |
| 9 | current := head |
| 10 | var prev, next *ListNode |
| 11 | for current != nil { |
| 12 | next = current.Next |
| 13 | current.Next = prev |
| 14 | prev = current |
| 15 | current = next |
| 16 | } |
| 17 | return prev |
| 18 | } |
nothing calls this directly
no outgoing calls
no test coverage detected