void func1(int n, int m) { for (int i = 1; i 0) { m = m - 1; } } The Big-O complexity of the abo
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
void func1(int n, int m) { for (int i = 1; i 0) { m = m - 1; } } The Big-O complexity of the abo
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...
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!