Big O notation : First step to clean code
What is Big O notation?
A standard mathematical notation that determines the efficiency of an algorithm for worst-case scenario in respect to the input size.
So how is the efficiency calculated ? the efficiency is calculated with respect to two types of complexity:
- Time Complexity: How much time does it take to run completely?