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 10573Post New Qatar University Interview Questions
What are the different class and ranges of ip address?
What is a support package?
What are data validation strategies for data mart validation after loading process?
Tell us your 2 strengths and weakness. Give examples.
What role does AI play in finance for risk analysis and portfolio management?
What is dhtml in computer?
How to add 301 redirects in PHP?
Give some questiong with anser with are usally ask to the interviewer in interview. Please give answer with detail.
god evening sir i am studying m.sc(tech)electronics &instrumention.am i elegible to all industies
What is the process that must be followed to purge deleted messages mechanically in ms outlook?
What are the advantages of using a ball mill over other conventional methods of crushing?
Can you get a virus from website?
explain detail about ftp in datastage?
any body tell me what are the prob's mostly we face and send some critical prob in real time environment in Solaris and veritas (VXVM,VCS)
What is the keyboard shortcut to merge documents?