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

1 answer

Answer

1240191

2026-05-07 01:55

+ Follow

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

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.