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 8854

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 21462

Post New CTS C++ Code Interview Questions


CTS C++ Code Interview Questions


Un-Answered Questions

What is the difference between an Abstract class and Interface?

576


What does it mean to declare a member function as static?

577


What does pipe () return?

562


What is the difference between visual studio community and professional?

358


What is the default error handler in camel?

5






When a spring is cut into two, stiffness becomes ?

566


Is analog and digital voice supported?

538


What is budget?

687


What is the typical sales cycle between initial customer contact and closing of a sale? - Venture Capitalists

1046


How delete all files and folders using cmd?

438


What is the use of trim function in php?

498


What is partial class?

517


What graphics card is best?

1


What are SEZs? Where are they situated?

645


What is known as data-driven testing?

590