Learn to Code - BIG O NOTATION

aryakris

Arya Krishna

Posted on April 28, 2022

Learn to Code - BIG O NOTATION

The complexity of code in algebraic terms is Big O Notation. In other words Big O Notation determines how efficient your algorithm is!
How is the efficiency of algorithm measured?
In order to measure the efficiency we take into consideration 2 factors.

  1. Time Complexity - The time taken to run the code completely

  2. Space Complexity - The extra space that is required in the process

It is denoted as -

f(n)=O(inputSize)
Enter fullscreen mode Exit fullscreen mode

Big-O notation show how much time or space an algorithm would require in the worst case scenario as the input size grows.

💖 💪 🙅 🚩
aryakris
Arya Krishna

Posted on April 28, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Learn to Code - BIG O NOTATION
javascript Learn to Code - BIG O NOTATION

April 28, 2022

Starfield Programming in JavaScript
codenewbie Starfield Programming in JavaScript

December 25, 2021

Top Tips If You Want To Learn JavaScript
javascript Top Tips If You Want To Learn JavaScript

November 29, 2021