Walk the list while storing next, redirect current.next to prev, then advance prev and current. Return prev after O(n) time and O(1) extra space.
Test empty input, one-element input, duplicates, boundary indices, invalid states, and the largest allowed size; state time and space complexity.
Get asked follow-ups live, then receive a scored report — like a real MLE interview loop.
Start AI mock interview