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 8968Post New Qatar University Interview Questions
Which interface treemap implements?
explain the process of deduplication in object server?
Which are the new data types introduced in sql server 2008?
Is outlook free on windows 10?
Explain localization?
Is Pig script case sensitive?
can any one tell me about dot net framework not basic detail
How do I count duplicates in sql?
What is sqldatareader in ado.net?
What is the difference between sealed class and dynamic classes in flex?
What does mysql flush hosts do?
What is the difference between a column break and a page break?
what is the soil bearing capacity for a 5 floor multistorey residential building and which type of soil ? what is plinth beam? in wall load calculation center to center column distance is considered or not/
How to represent ENUMs and SETs internally?
Tell me what is goal in google analytics?