Given the head of a singly linked list, reverse every alternate quarter of the list's nodes. Specifically, partition the list into quarters by length, and reverse the elements within the 1st and 3rd…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.