function someFunction(n) { for (var i=0;i - Study24x7
Social learning Network
28 Jun 2020 12:17 AM study24x7 study24x7

function someFunction(n) {
for (var i=0;i<n*10;i++) {
console.log(n);
}
}
Time complexity of the above code is

A

O(n)

B

O(10n)

C

O(10n+1)

D

O(10)

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles