Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

CTS C++ Code Interview Questions
Questions Answers Views Company eMail

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 9143

Find 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 21832

Post New CTS C++ Code Interview Questions


CTS C++ Code Interview Questions


Un-Answered Questions

Into how many types acquired immunity is classified?

175


what is difference between venture capital financing and equity financing?

1548


3 phase induction motor connection star or delta while using ac drive motor is .75 to 5.5 kw

1559


Explain the difference between filter and conditin?

593


What does registry editor do?

496






what is a Task Tracker in Hadoop?

415


what are the new features introduced in oracle form services in 11g release 2?

612


What are the major product milestones? - Venture Capitalists

1215


What is your biggest failure in life? How did you overcome it?

753


What packages are used for data mining in r?

55


Which node is more powerful and can handle local information processing or graphics processing?

872


What is constant in tensorflow ?

5


How to execute a php script from the command line?

589


What knowledge should financial accountant have?

743


What is the meaning of MDM with reference to Talend?

5