What is the time complexity of a while loop in terms of Big O notation?

1 answer

Answer

1260378

2026-08-13 17:00

+ Follow

The time complexity of a while loop is O(n), where n represents the number of iterations the loop performs.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.