mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-08 12:01:56 +00:00
![Cheng-Lung Sung](/assets/img/avatar_default.png)
finding the minimum and maximum of an array with at most 3n/2 - 2 comparisons Approved by: co-mentor (vanilla)
8 lines
211 B
Plaintext
8 lines
211 B
Plaintext
Algorithm::MinMax finds the minimum and maximum of a given
|
|
array with at most 3n/2 - 2 comparisons, where n is the
|
|
number of elements of the array.
|
|
|
|
WWW: http://search.cpan.org/dist/Algorithm-MinMax
|
|
|
|
--clsung
|