Medium
Quiz
#24 Swap Nodes in Pairs
APPROACH
Exchange every pair of adjacent nodes in the linked list and return the new head. Only node pointers may be rearranged; node values must not be modified.
1 of 4
1:00
What is the optimal approach for this problem?