Time complexity describes the amount of time an algorithm takes to run as a function of its input size. Because performance can vary depending on the input, we analyze algorithms using three scenarios ...