Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: help with an array of arrays

by Paladin (Vicar)
on Sep 14, 2018 at 23:19 UTC ( [id://1222402] : note . print w/replies, xml ) Need Help??


in reply to help with an array of arrays

Remove the inner loop. Since you already know the max number, you only need to loop through the outer array once, looking for ones that match the max number.

Replies are listed 'Best First'.
Re^2: help with an array of arrays
by Anonymous Monk on Sep 14, 2018 at 23:22 UTC
    Ah, good catch, thanks!