- What Is The Worst Case Computational Complexity Of The Following Code Snippet In Terms Of Big O Notation Int I 0 N 5 1 (31.34 KiB) Viewed 15 times
What is the worst case computational complexity of the following code snippet in terms of Big O notation? int i 0, n = 5
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
What is the worst case computational complexity of the following code snippet in terms of Big O notation? int i 0, n = 5
What is the worst case computational complexity of the following code snippet in terms of Big O notation? int i 0, n = 5; if (i <n) print "less" else print "more or equal" O (n^2) (n squared) O 0(1) O O(nlogn) O O(n) O O(logn)