Is This approach correct since it will return true only for array which is sorted in increasing order.
Say if elements are 5 4 3 2 1 it is returning false.
CHECK IF ARRAY IS SORTED USING RECURSION
we are considering sorted in increasing order
Is This approach correct since it will return true only for array which is sorted in increasing order.
Say if elements are 5 4 3 2 1 it is returning false.
we are considering sorted in increasing order