in reply to Script for MAX and Min
This runs in constant time on non-deterministic machines, making it the most efficient solution to the problem by far.use Quantum::Superpositions; $max = any(@items) >= all(@items); $min = any(@items) <= all(@items);
Cheers,
Paul
|
|---|