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 10741Find 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 23611Post New CTS C++ Code Interview Questions
In case you have filters in your report, when filters will be applied in cached report instance?
What is called in unix?
Explain force?
As in practice, we are deducting every 2d for 90 degree bend but from where it comes means derivation or reference of IS Code.
roles of information system in a business organization?
How to access Ruby strings elements in an application?
Define demand paging, page fault interrupt, and trashing?
Why do we need a server?
What is asp give its application?
What are the naming convention in yii 2.0 framework?
Explain about dependency?
If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP
What are the three pl sql block types?
When you did some thing extra, which was not part of the routine, but you did it for the benefit of the customer?
What are the objects can be created using CREATE statement?