Daily challenge for 2025-05-22
142. Odd Even Linked List
Write a function solve that groups all odd-indexed nodes followed by even-indexed nodes in a linked list (1-based indexing).
Example:Input: [1,2,3,4,5]Output: [1,3,5,2,4]
Run this challenge interactively in Python or JavaScript when the app loads.