Given a singly linked list and two values v1 and v2, swap the nodes containing these values. You must swap the nodes themselves, not just their values.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.