Challenge 2: Sort an Array

In this lesson, you must sort an array using recursion.

We'll cover the following

Problem Statement

Write a method sortArray that takes an integer array and returns the sorted array.

The following illustration explains this concept:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.