Post

✨ Big O ✨ Let me take you on a visual introduction to what big O notation is in my new blog post: samwho.dev/big-o. With big O notation you can better understand how algorithms will perform in practice, finding orders of magnitude improvements often with very simple changes to your code.

Nothing is really stopping you from writing O(2n) if you really wanted to, but you won't find many people doing it. The idea is that as N approaches infinity, what is the most significant term? And in this case it is N itself. The multiplication doesn't change the _growth_ of the function.

0 reposts0 likes