3 ms·
Avoid obvious n^2 or n*m loops
by sanj 19y ago
Avoid obvious n^2 or n*m loops
- ardit33 19y agowrong. If you know your loops is going to go thru max a hundred of times, then just don't optimizing, as it would be a n overkill. if you know your loop might iterate up to thousands, then it is time to seek some better algorithms.