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 6941

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 18267

Post New CTS C++ Code Interview Questions




CTS C++ Code Interview Questions





Un-Answered Questions

Do you have interest in any particular area?

40


how to see the db size?

27


Explain relative vs. Non-relative module imports.

1


Explain dynamic dashboard? : salesforce admin

1


Explain what is di (dependency injection) and how an object or function can get a hold of its dependencies?

35






What is fecal microbiota transplantation (FMT)? What is its rationale?

41


For 160kw motor what size of cable and material is needed.?

528


What is injector tree?

15


What is private mode?

14


could u pls anyone tel me .."which is the best instute that provides eficient practical knowledge and also real-time oriented knowldge to do a project in manual and automation testing..in hyd" pls send me to dis mail-id if u find any..? sinducute17@gmail.com

980


WHAT IS DIFFERENCE B/W MALTINGRANG/DSC

1311


What are all the scenario for 1.google analytics 2.api 3.paypal

818


Mention the Layers of PaaS Architecture?

5


What are the two types of exceptions in java? Which are the differences between them?

13


What is the best code you can write to swap two numbers?

21