Given a singly linked list, rearrange its nodes in-place such that the first node is followed by the last node, the second by the second-to-last, and so on. For example, a->b->c->d->e 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.