function someFunction(n) { for (var i=0;i - Study24x7
Social learning Network

Warning: include(./views/auth.php): failed to open stream: Permission denied in /var/www/html/live/loginRightSlider.php on line 18

Warning: include(): Failed opening './views/auth.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/loginRightSlider.php on line 18
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