Given a singly linked list, rearrange its nodes such that the first element is followed by the last element, then the second element by the second last element, and so on. Implement this in-place.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.