Given a singly linked list, rearrange the nodes such that the first node is followed by the last node, the second node by the second to last node, and so on. For example, 1->2->3->4->5->6 becomes…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.