Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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 7874

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 20017

Post New CTS C++ Code Interview Questions




CTS C++ Code Interview Questions


Un-Answered Questions

How do we create a thread to do ajax polling?

260


How do you set a field so the user can edit it?

1


Does java have extension methods?

238


What is the use of procedures?

259


What is the difference between factory and abstract factory design pattern?

284






How do you generate (recover) old system logs in a newly created SLOG00?

1391


in relation to pioneer industries, explain the following terms:1,production day. 2,certificate of qualify expenditure. 3,income tax relief. 4,pioneer certificate 2. list seven pioneer industries which fall under pioneer status as contained in the industrial development act 1971

2370


what is the relationship between garbagecollection and thread?

909


How do you create a foreign key in pgadmin 4?

221


What is the interactive job? What is the batch job?

284


Is android the most popular os?

218


Give reasons supporting that string is immutable.

250


Is windows 7 higher than xp?

202


Is rails still relevant 2019?

48


Write a few frameworks of scala?

1