Given an array of integers, return the array in alternating min/max order. The first element should be the first maximum, the second element should be the first minimum, the third element should be the second maximum, and so on....
New to InterviewQs? Sign up now.
By proceeding, you agree to our Terms and Conditions and Privacy Policy.
Loading editor...