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 8880

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 21503

Post New CTS C++ Code Interview Questions


CTS C++ Code Interview Questions


Un-Answered Questions

What are mitochondria? What is the basic morphology of these organelles and in which cells can they be found?

507


What is application package?

518


What is the use of connect statement?

3


Is it true that each controller has its own context node ?

121


Floor tile measurement? Wall to wall or skirting to skirting

1343






What is the internet of the whole lot?

5


What is the model-view-controller (mvc) pattern? : adobe flex action script

3


What is cookie in servlet?

565


Which function can be used to exit from the script after displaying the error message?

487


what is insert all statement in sql

5436


What is the formula of the net primary production (npp)?

47


what is guest os?

248


Discuss the challenges and solutions involved in mechanizing and automating labor-intensive tasks in crop cultivation and harvesting.

89


Do you know how many types of business transactions are there in accounting?

584


How do I install a certificate?

495