Complexity AnalysisO(n) Basics
📈

Linear Time Complexity — O(n)

Many algorithms need to visit every element one-by-one as input grows.