What is the time complexity T(n) of the following program? a) int n, d, i, j; cin >> n; for (d=1; d<=n; d++) for (i=1; i<=d; i++) for (j=1; j<=n; j += n/10) cout << d << " " << i << " " << j << endl; b) void main() { int n, s, t; cin >> n; for (s = 1; s <= n/4; s++) {t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } } c) void main() { int n, r, s, t; cin >> n; for (r = 2; r <= n; r = r * 2) for (s = 1; s <= n/4; s++) { t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } }
3 10637Post New Qatar University Interview Questions
What is the advantage of an external iterator.
What is a dotm file?
what is the circulate the diesel in DG in side pls tell parts name and picture with circulate the diesel
What Are The Duties Of Operations Manager?
How do you define a milestone?
What is shortcut menu and explain "The ole control's shortcut menu".
write a note on Testing the web site
How do you sort sheets?
Can you leave a union at any time?
what happens when namenode goes down during file read operation in hadoop?
Explain about map and their types?
What is pv function in excel?
Why spring controller is singleton?
What are grid classes in the bootstrap?
How to Recover a MySQL root password. Stop the MySQL server process. Start again with no grant tables. Login to MySQL as root. Set new password. Exit MySQL and restart MySQL server.