In theoretical computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Frequently asked questions What is time complexity ? Time complexity is a measure of how long an algorithm takes to run as the input size increases. It's an essential concept in computer science for analyzing and comparing the efficiency of algorithms. What's the difference between time complexity and space complexity ? The time required by the algorithm to solve given problem is called time complexity of the algorithm. Time complexity is very useful measure in algorithm analysis. Time Complexity is a concept in computer science that deals with the quantification of the amount of time taken by a set of code or algorithm to process or run as a function of the amount of input. In other words, the time complexity is how long a program takes to process a given input. The efficiency of an algorithm depends on two parameters: Time Complexity Space Complexity Time Complexity : It is defined as the number of times a particular instruction set is executed rather than the total ...