Swap Nth Node with Head
Given the head of a singly linked list and 'n', swap the head with the nth node. Return the head of the new linked list.
We'll cover the following...
Access this course and 1400+ top-rated courses and projects.
Lifetime Discount - 50% Off
$13
$24.83/month