Interview Solution

Increasingly, people seem to misinterpret complexity as sophistication, which is baffling - the incomprehensible should cause suspicion rather than admiration. Niklaus Wirth

Verify Sorted

Language Java | Level Intermediate | Category Interview Problems | July 24, 2015 4:52 pm


Interview Problem

Check an array of integers is sorted or not.
Write program to verify the array of elements is sorted or not
Given array "[1,4,5]" return true
Given array "[1,5,4]" return false


Array:[12, 56, 24, 34]:false
Array:[1, 2, 3, 4, 5]:true



Please login to add comments.