Coding 2 - Odd Even Linked List
Problem: Odd Even Linked List
Given the head of a singly linked list, group all nodes with odd indices (1-based) together followed by the nodes with even indices (1-based).
Return the hea...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
