Skip to content

Instantly share code, notes, and snippets.

View ricardovogel's full-sized avatar

Ricardo Vogel ricardovogel

View GitHub Profile
@ricardovogel
ricardovogel / quicksort.java
Last active December 21, 2018 10:57
in place quicksort
public static void quickSort(int[] elements) {
quickSort(elements, 0, elements.length - 1);
}
public static void quickSort(int[] elements, int low, int high) {
if(low >= high){
return;
}
int pivot = partition(elements, low, high);
quickSort(elements, low, pivot - 1);

If you're a TU Delft student, you can contact me to get access to my solutions to exams and assignments. Send an email using your TU Delft address to R.Vogel-1[at]student.tudelft.nl.

Availible material:

  • OOP Assignments
  • OOP Exams
  • ADS Weblab (inc. exams)