Calculate time complexity of any algorithm
@abrakadabra
•
Oct 26, 2024
Oct 26, 2024
1.3K
A question is always asked in viva and interviews : "How to calculate the time complexity of a given algorithm".
One might say that why should we calculate it when there are tools available for it?
For example, we have Analyze menu in VS Team Suite, NDepend etc..
The most common metric for calculating time complexity is Big O notation.
Could someone explain how to calculate time complexity in simple words?
One might say that why should we calculate it when there are tools available for it?
For example, we have Analyze menu in VS Team Suite, NDepend etc..
The most common metric for calculating time complexity is Big O notation.
Could someone explain how to calculate time complexity in simple words?