The very first thing that a good developer considers while choosing between different algorithms is how much time will it take to run and how much space will it need. In this article we are going to talk about why considering time complexity is important and also what are some common time complexities.
Why running time is so important?
Take an example of Google maps, you would want the shortest path from A to B as fast as possible. Or in case of Data Analysis, you would want the analysis to be done as fast as possible. So, to get desired results from the algorithm in optimum amount of time, we take time complexity into consideration.

#python #programming #data-structures #big-o-notation #time-complexity

The Big-O! Time Complexity with Examples
1.25 GEEK