Rearrange a singly linked list such that all nodes at odd positions are grouped together, followed by all nodes at even positions, maintaining relative order.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.