Check if an array is sorted or not using recursive approach!
Problem Statement:
You will have given an array. You need to find out if the array is sorted in ascending order or not. Remember equal values are allowed.
Approach:
Let's follow the below algorithm:
If the length of the array is 0 or 1, return true....
blog.whoisnikhil.com2 min read