Given an array of integers, rearrange the array such that elements are picked alternately from the maximum and minimum ends (e.g., largest, smallest, second largest, second smallest).
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.