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 7460Find the maximum product of three numbers in an array? Eg. 9,5,1,2,3 Max product= 9*5*3= 135 The array can hav negative numbers also..
7 19375Post New CTS C++ Code Interview Questions
What are different types of reports? : salesforce reports and dashboards
explain types of electric welding and its applications
What are the characteristics of federal system government?
What are your salary requirements at PNC Bank?
howmany electrician should maintain for a 1000 kva used plant... in kerala..
How do I slice up an image in adobe photoshop cs4 extended?
What is flag in computer?
How do I stop my toolbar from auto hiding?
Is mongodb support relationship?
what are the accounts created in sap mm?
What is the purpose of corrugated furnaces?
Describe vpn?
What is meant by OSI model?
What is the use of selecting block size in a block blob?
How would you differentiate bitcoin blockchain and ethereum blockchain?