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
.
You're challenge is to write tests for this problem described above.
Stuck? You may find these lessons helpful: