Odd Even Linked List
Medium
Linked List (Advanced)
Group all nodes at odd positions together followed by the nodes at even positions (positions are 1-based) keeping the relative order within each group, and print the list.
Constraints
0 <= n <= 10^4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.