What is the time complexity of a nested while loop?

1 answer

Answer

1068792

2026-04-14 08:45

+ Follow

The time complexity of a nested while loop is O(n2), where n represents the size of the input data. This means that the execution time of the nested while loop increases quadratically as the input size grows.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.