Practice Problem
Swap Nodes in Pairs
Difficulty: Medium
Given a linked list, swap every two adjacent nodes and return its head. You must solve it without modifying the values in the list's nodes.
Practice Problem
Difficulty: Medium
Given a linked list, swap every two adjacent nodes and return its head. You must solve it without modifying the values in the list's nodes.