Just another Perl shrine | |
PerlMonks |
Re: Efficient selection mechanism?by salva (Canon) |
on Jan 14, 2014 at 14:41 UTC ( [id://1070564]=note: print w/replies, xml ) | Need Help?? |
Supposing the number of distinct small numbers is really going to stay small and the number of entries on the array on the thousands:
That should use no more than a few KB and be O(N).
In Section
Seekers of Perl Wisdom
|
|