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 7351

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 19162

Post New CTS C++ Code Interview Questions




CTS C++ Code Interview Questions


Un-Answered Questions

How much the quantity of Dry material of Crush for 1:2:4 Concrete, using pan 3/8'' down....

921


What is federated tables in mysql?

117


What is enum in objective c?

1


What is the purpose of a style sheet?

19


Describe the collagen growth assay i.e branching morphogenesis?

1024






What is the mean of whitening in toothpaste?

135


What is microsoft access 2013 runtime?

86


Should I end my urls with a slash?

92


In GC calibration,what is the procedure to calibrate the TCD (thermal counductivity detector)suggest ?

2223


is their any difference between bex 3.5 and bex 7.0?

3189


What is Scrollspy plugin?

1


which items should be covered the Entry Tax by HP Govt instead of Purchased

932


Expand---------TDCB

923


Which are the different workbook protection types in excel?

15


How do I disable owa for a single user in exchange 2000/2003?

107