To reverse a linked list in place, we need to keep track of the current node, as well as the previous and next nodes. We can then change the pointers of the current node to point to the previous node, and move on to the next node.
The candidate's solution does not demonstrate a level of completeness and does not solve the problem. The approach is not clear.
Evaluated at: 2022-11-26 10:15:52