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 8973

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 21587

Post New CTS C++ Code Interview Questions


CTS C++ Code Interview Questions


Un-Answered Questions

give an example of an important goal that you set in the past.

666


What is ngstyle and ngclass?

450


What is multiple sclerosis?

335


What javascript libraries and frameworks are available?

601


what is Xcode command line tools package?

477






If your work performance is suffering, what would you do to improve it?

741


Explain the purpose of nat protocol?

477


What is discrete time system?

480


What is crpc in law?

559


Where session id is stored?

524


What are the orm tools?

159


How do I use text in excel?

302


What will be the consideration while we do Hardware Planning for Master in Hadoop architecture?

701


What are the field and chain statements?

573


Write a program to show the execution of the application?

112