Solution Review: Sort an Array
This lesson will give a detailed solution review for the problem of the previous lesson.
We'll cover the following...
We'll cover the following...
Solution: Sorting the Array
Understanding the code
The recursive code can be broken down into two parts: the recursive method and the main where the method is called.
Driver Method
The driver code is found from line 18 to line 37.
- An
arrayis defined in the driver code. - The code from line 23 to line 27 prints the unsorted array.