Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Recursive quick sort logic */
- private static void sort(int[] elements, int low, int high) {
- if (high <= low) { // 1
- return; // 1
- }
- int j = partition(elements, low, high); // 2
- sort(elements, low, j - 1); // 3
- sort(elements, j + 1, high); // 3
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement