Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: help with an array of arrays

by Paladin (Vicar)
on Sep 14, 2018 at 23:19 UTC ( #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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1222402]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2022-05-24 18:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?