About this question

Locker Toggle Simulation

Easy · Brainteasers · Quant Trader interview question · big-o, complexity, simulation, arrays

A developer has written a simulation to solve the "100 Lockers" problem. They use a nested loop approach to toggle the states of the lockers. What is the Time Complexity of this function in terms of $N$ (the number of lockers)?