|
|
| There's more than one way to do things | |
| PerlMonks |
Re: "Just use a hash": An overworked mantra?by vkon (Deacon) |
| on Dec 23, 2011 at 12:38 UTC ( #944920=note: print w/ replies, xml ) | Need Help?? |
|
But just because hash key lookups/increments are O(1) operations, that doesn't make them computationally cheap.
not correct Hash is not O(1). Also, this example of 0..999 integers looks too artifical to me, and it is too obvious to use an array here, so - for me - it does not deserve to even start the discussion, in the first place :) I do appreciate good English of the original post, however, which I, personally, do not possess
In Section
Meditations
|
|
||||||||||||||||||||||||||||||||||||||