## The 4 Basic Types of Time Complexity

Time complexity is a measure of the number of operations an algorithm must make in relation to the number of inputs we give it. We call the number of inputs **n**. We use the term **marginal cost** to describe the increase in runtime caused by increasing **n** by 1.