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: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