Time Complexity:- The time complexity of an algorithm is the amount of time it requires to run to completion. Some of the reasons for studying time complexity are:-
We may be interested to know in advance whether the program will give a satisfactory real time response.