โŒจ๏ธap computer science principles review

Time Complexity

Written by the Fiveable Content Team โ€ข Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated August 2025

Definition

Time complexity refers to the amount of time it takes for an algorithm to run, as the size of the input increases. It indicates how efficiently an algorithm solves a problem.