r/ProgrammerHumor • • Jan 16 '14

[deleted by user]

[removed]

1.3k Upvotes

446 comments sorted by

View all comments

Show parent comment

1

u/Ph0X Jan 17 '14

Is that necessary though? The normal algorithm is O(n), which is as good as you can ever hope to achieve.

1

u/sophacles Jan 17 '14

In real life, that constant tends to matter a lot. So do cache misses.