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, its size and returns the sorted array.

The following illustration explains this concept:

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