Rearrange array into a wave
Filed under Myntra
The question
Given an array of numbers, rearrange or output them in a wave format satisfying a specific mathematical expression.
No write-up yet. Related questions below have one.
Related Myntra questions
Collected from public candidate posts and coding forums. Updated Nov 2026.