Declare and implement a function called arrayIsSorted
that accepts a single array of Int
values
and returns whether the array is sorted in ascending order. If the array is null
, you should return false
.
Stuck? You may find these lessons helpful: