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

Reverse An Array

Difficulty: Easy

Acceptance: 85.00%

Points: 20.00

You are given an array of integers. Your task is to reverse the array using recursion only. You are not allowed to use any loops or built-in reverse functions. Return the array after reversing all its elements.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 1 <N<105
  • -109 < arr[i] < 109
Companies:
Apple Coinbase Media.net
Topics:
Recursion
Locked Content
Access Restricted: Please Login to access the code editor and test cases.