-O analysis of this function: void print(n) { int i; int* p; p = new int(n); for (i = 1; i<=n; i=i+1) cin >> p[i]; for (
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
-O analysis of this function: void print(n) { int i; int* p; p = new int(n); for (i = 1; i<=n; i=i+1) cin >> p[i]; for (
-O analysis of this function: void print(n) { int i; int* p; p = new int(n); for (i = 1; i<=n; i=i+1) cin >> p; for (i = 1; i<=n; i=i+1) cout << p; } Your analysis should show the procedure of how you do the analysis in d give the big-O value.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!