Microsoft | Phone Screen
Anonymous User
1034

Delete all numbers which are smaller than the next item in the array. Array is a dynamic array.

Input: array[]={25,20,15,40,65,55,75,45}
Output: array[]= {75,45}

Comments (7)