http://qs321.pair.com?node_id=1222402


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.