Find your Best Code Solution Understanding Big 0 Notation

Piero Borrelli
Asayer
Published in
5 min readSep 15, 2020

--

The building block for finding the “good”, the “better” and the “best” solution possible

Illustration by Icons 8 from Icons8
Illustration by Icons 8 from Icons8

Big 0 notation is an essential concept to understand for your developer’s career. First, it is asked a lot in coding interviews questions. Second, it’s the determining factor when it comes to choosing your most efficient code solution or algorithm.

I already mentioned in another article how code changes when implemented on a large scale. Suppose you write a function that gets a series of strings and then parses out some word out of them.

For most of you, such a program would be a no-brainer to implement in your language of choice. But what happens if the input strings start to become 10000? Or maybe a million, or even ten million.

You would still have 10 ways of doing it with all the tools that modern languages offer. But what’s the actual best way? What is the solution that takes up less runtime? Or in other words, what’s the most efficient algorithm?

That’s when Big 0 notation comes in handy.

Big 0 is your language of choice to express the complexity of your algorithms. Or, in simplified words, Big 0 is the way you will use to describe the…

--

--

Piero Borrelli
Asayer

Software developer turned entrepreneur. Founder of a technical marketing agency at: https://www.technicalconversioncopyclub.com/