public class LogTimePEFinder<T extends java.lang.Comparable> extends java.lang.Object implements PeakElementFinder<T>
Sub-linear time-complexity algorithm to find peak element in a bitonic series.
PeakElementFinder
ARRAY_IS_EMPTY, DATA_TYPE_NOT_SUPPORTED_YET, DECIMAL_RADIX, DELIMITER_COMMA, ELEMENT_NOT_FOUND, LIST_IS_EMPTY, OPERATION_NOT_SUPPORTED_YET
Constructor and Description |
---|
LogTimePEFinder() |
Modifier and Type | Method and Description |
---|---|
T |
findPeakElement(T[] objects) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkArray, checkIntArray, checkList
public T findPeakElement(T[] objects)
findPeakElement
in interface PeakElementFinder<T extends java.lang.Comparable>