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

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

A

O(n/2)

B

O(log 2)

C

O(log n)

D

O(log n/2)

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