QuickSortBreaker.java 368 Bytes
package edu.caltech.cs2.datastructures;

public class QuickSortBreaker {
    /**
     * Generates array of Integers which makes quick sort have quadratic time complexity when it sorts the array.
     *
     * @param len length of array.
     * @return array of Integers.
     */
    public static Integer[] genArray(int len) {
        return new Integer[len];
    }
}