Is O(n) better than O(log n) in terms of time complexity?

1 answer

Answer

1161208

2026-03-04 11:15

+ Follow

In terms of time complexity, O(log n) is better than O(n) because it has a faster rate of growth as the input size increases.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.