Complexity budget

Slide n to the size in the constraints and see which Big-O can finish in a second.