The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> I know the OPs spec is rather cryptic but my understanding was, that the values are to be blanked out if the max occurs more than once.
hmm ... ok my understanding was to discard if all are maximum, see (3,3,3) But your definition is indeed closer to the naming highlander, maybe peak was better.
editFor highlander compare with [-2] if there are more than 2 elements. BTW: "cryptic" is an euphemism for incompetent ... if you can't express such a problem in words you don't deserve being called a programmer. Cheers Rolf ( addicted to the Perl Programming Language) In reply to Re^4: How do I remove the duplicates from the array?
by LanX
|
|