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 10733Post New Qatar University Interview Questions
How do I get outlook 2010 to work with office 365?
How do you differentiate between acute kidney injury (AKI) and chronic kidney disease (CKD) based on clinical presentations and test results?
What are the modes of tibco bw installations ?
What is custom attribute?
Is joomla secure?
Is it true that short variable declaration := can be used only inside a function?
What is drivermanager in java?
What is %CHECK?
Which records can be included into a record group?
Which method of the httpservletrequest object is used?
How you can create a simple query in access 2013?
Is benzalkonium chloride a quaternary ammonium compound?
Mention the materials used for making care labels.
Interested in offering your software to sap customers so they can enhance functionality of their sap servers running linux?
How is a blockchain ledger different from an ordinary one?