Given a singly linked list, extract every second element, reverse that extracted list of alternate elements, and append it to the end of the remaining list. For example, given a-x-b-y-c-z, rearrange…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.