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 8944

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 21568

Post New CTS C++ Code Interview Questions


CTS C++ Code Interview Questions


Un-Answered Questions

What’s a distinction between apache and nginx net server?

444


What is linux and its advantages and disadvantages?

455


What is the final keyword in java?

541


Enlist some of the functions that r provides?

51


I am IT engineer how IT would be useful in banking?? what best answer would be given for this question???

1272






How to use newtonsoft or json.net for serializing json data?

1


Why is leguminous crop rotation used in agriculture?

149


What is data and data types?

499


what is uca? (Under cover agent)

519


How doe's the storm make in the sky.

1679


How do you use the f4 key on a laptop?

301


what are the parameters plays a major role in Potential transformer Burden calculation??

1593


How do I combine data from multiple rows into one in excel?

275


How you will Show unique records.

535


Why is jconsole used? What is it’s different elements?

51