Page 1 of 1

void func1(int n, int m) { for (int i = 1; i 0) { m = m - 1; } } The Big-O complexity of the abo

Posted: Mon Jun 06, 2022 2:19 pm
by answerhappygod
Void Func1 Int N Int M For Int I 1 I N I I 2 While M 0 M M 1 The Big O Complexity Of The Abo 1
Void Func1 Int N Int M For Int I 1 I N I I 2 While M 0 M M 1 The Big O Complexity Of The Abo 1 (11.83 KiB) Viewed 21 times
void func1(int n, int m) { for (int i = 1; i<n; i =i*2) { while (m > 0) { m = m - 1; } } The Big-O complexity of the above function is type your answer...