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
In reply to Re: Script for MAX and Min
by pjf
in thread Script for MAX and Min
by NodeReaper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |