Available question text
Rearrange the array by sorting elements at even indices in non-decreasing order and elements at odd indices in non-increasing order, then placing the sorted values back into their original parity positions. Return the resulting array.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Meta
Leetcode 2164. Sort Even and Odd Indices Independently
Reported Nov 27, 2024 · 1 source report
JUNIOR
Source snapshot: Nov 12, 2026
View source