Rearrange a singly linked list so that 1->2->3->4->5->6->7->8 becomes 1->8->3->6->5->4->7->2. From this single example, nodes at odd positions stay in place and the values at even positions appear in…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.