6. Do a big-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 >>
Posted: Sun May 15, 2022 8:21 am
6. Do a big-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 << pU; } Your analysis should show the procedure of how you do the analysis in detail. At the end, give the big-O value.