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 10744Post New Qatar University Interview Questions
Can I install wordpress on my computer?
What is the difference between rfc and bapi function modules? : abap bdc
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What are the ways to create input forms for workflow?
What are nested classes?
How to set and get config item value in codeigniter?
What is event loop?
What is creepage distance..... what will be the value for different voltage level
What is an attribute dictionary and what are its benefits?
A logic circuit that provides a HIGH output if one input or the other input, but not both, is HIGH, is a(n)?
How do I set up outlook 2016 with outlook?
Explain how and when a DNS request is solved when a user tries to surf to the site www.abcdeg.in .Assume the user machine uses a local name server and sits on another network other than www.abcdef.in.
What is the first responder?
What are pointers?
How to make a net component talk to a com component?