Page 1 of 1

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

Posted: Sat May 14, 2022 8:40 pm
by answerhappygod
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 1
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 1 (34 KiB) Viewed 34 times
-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.