|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mhhe.clrs2e.MinMax
Implements Minimum and Maximum from page 184 of Introduction to Algorithms, Second edition.
Constructor Summary | |
MinMax()
|
Method Summary | |
static java.lang.Comparable |
maximum(java.lang.Comparable[] array)
Returns the largest element in an array. |
static java.lang.Comparable |
minimum(java.lang.Comparable[] array)
Returns the smallest element in an array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MinMax()
Method Detail |
public static java.lang.Comparable minimum(java.lang.Comparable[] array)
array
- The array.public static java.lang.Comparable maximum(java.lang.Comparable[] array)
array
- The array.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |