Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Check Array is Sorted

Difficulty: Basic

Acceptance: 80.00%

Points: 10.00

You are given an array arr[] of integers. Your task is to check whether the array is sorted in non-decreasing order using recursion only. You are not allowed to use any loops.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 1 < n < 105
  • -109 < arr[i] < 109
Companies:
Apple Samsung BNY Mellon
Topics:
Recursion
Locked Content
Access Restricted: Please Login to access the code editor and test cases.