Package com.zybooks.dsaj.recursion
Class Unique3
java.lang.Object
com.zybooks.dsaj.recursion.Unique3
Demonstration of a recursive (and very bad) solution to element uniqueness problem.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
unique3
(int[] data, int low, int high) Returns true if there are no duplicate values from data[low] through data[high].
-
Constructor Details
-
Unique3
public Unique3()
-
-
Method Details
-
unique3
public static boolean unique3(int[] data, int low, int high) Returns true if there are no duplicate values from data[low] through data[high].
-