Skip to content

Instantly share code, notes, and snippets.

View mrWinston's full-sized avatar

Marius Schulz mrWinston

  • Red Hat
  • Rostock, Germany
View GitHub Profile
@mrWinston
mrWinston / MergeSort.java
Last active August 29, 2015 14:23 — forked from louisbros/MergeSort.java
Merge Sort Class #Sort #java #merge #comparable
package com.test;
import java.util.ArrayList;
import java.util.List;
public class MergeSort<T extends Comparable<T>> {
public void sort(List<T> values){
mergeSort(0, values.size() - 1, values, new ArrayList<T>(values));
}