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 9017Find 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 21654Post New CTS C++ Code Interview Questions
What are the types of open() method used for xmlhttprequest?
Is postgres a mpp?
What are the built in javascript functions available to customize your web template?
What is sequelize?
What is the difference between tor steel and tmt steel?
Explain the spsite?
What are abstract classes?
How do you fix a flickering screen?
Why do we need interlocking in a HT metering or Ring main unit switchgear?
Explain the source of income for niacl?
Scenario A year ago we developed a standards compliant website for a client. Their site is very popular resulting in the client wanting to be able to track how it is being used by their users. The first part of this project is to create a Login function so that users can be identified on the website. The data supplied by users would have to be handled securely. You have been allocated this project to work on. You will be responsible for the task from start to finish and will be expected to give feedback to your manager. User expectations The client wants their users to be able to login using a page that fits in with the website design. Tom wants to access the website but doesn’t want his login information to be available to anyone else. Paul doesn’t want to login to the website because he’s not a frequent user. Task Please provide some feedback on how you would do the following:- Being the only Test Engineer on this task, what would your approach be for this requirement? Identify the key areas for testing this page. What tools if any, would you use to perform the testing, bearing in mind that the testing will be done without using an ‘automated test tool’. Provide a sample test case that could be used for testing this page, for example as a word or Excel document.
In Pressure Sfety Valve(PSV) 2" by pass line why given for process units.
how to cable size by Amp with example
How is jmx useful in cassandra?
what is the purpose of the runtime class?