ben's avatar
Ben Carter
5 days ago

Big-O is a promise, not a stopwatch

🔥 12 engaged

O(n)O(n) does not mean fast. It means the running time grows at most linearly as nn grows.

A O(n)O(n) algorithm can lose to a O(n2)O(n^2) one on small inputs. Constants matter.

💬 2

Comments (2)

Log in to add a comment.