This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
public class problemSolving { | |
static void quickSort(int[] array, int l, int r) { | |
//We first check if the left-most element index is greater than right-most element index | |
//This is considered as a base case to exit from infinite recursive calls | |
if (l >= r) { | |
return; |
NewerOlder