3 ms·
That said, people sometimes ate grading your code based on performance. Good algorithms often win over simplistic ones.
by AstralStorm 10y ago
That said, people sometimes ate grading your code based on performance. Good algorithms often win over simplistic ones.
- makapuf 10y agoI'd say when you have big n, smart algorithms O(n) are better. But most of the time you have small n. better to optimize just the real big N in your program, for what you profiled, than using complex and "optimized" algos when N<1000. (I cannot retrieve the article this was taken from)
- adrianN 10y ago"It's okay for my n!" http://accidentallyquadratic.tumblr.com/ http://accidentallyquadratic.tumblr.com/