Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^5: Iterating through Two Arrays. Is there a better use of memory?by JavaFan (Canon) |
on Oct 13, 2011 at 20:34 UTC ( [id://931378]=note: print w/replies, xml ) | Need Help?? |
Note that it's only the runtime that's quadratic (or, to be precise, O(n*m)). The memory usage of the algorithm is bounded by O(n+m).
In Section
Seekers of Perl Wisdom
|
|