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

Infosys 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 11030

Min-Max Write an algorithm that finds both the smallest and largest numbers in a list of n numbers and calculate its complexity T(n).

1 7424

write a c program, using for loop, that accepts and odds two numbers. The output must be the sum and the addens. This should be repeated 5 times while the first number is decremented by one and the second number is incremented by 1.

2 9661

Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.

5 17463

Post New Infosys C++ Code Interview Questions


Infosys C++ Code Interview Questions


Un-Answered Questions

plese send me the oces/dgfs sylabus and previous year question pattern of electrical engg.?

2406


Are woollen Blankets (Rugs) taxable under CST ? Can unregistered party sell it.

2109


please send the last 5 years {{{JUNIOR ENGINEER - ELECTICAL, ELECTRONICS RRB CHENNAI and secundrabad}}} TECHNICAL question papers TO MY EMAIL ID dinesh100701@gmail.com

2292


Draw the vector diagram and condition for the following: 1) Dyn1 2) Ynd0 3) YnYn0

3783


What is the latest version of scala?

123


hello sir..iam keen to sit for iocl interview..please forward sample iocl questions to my id: kunal_kv06@yahoo.co.in

2605


You are required to show the effect of each of the following changes on profit and Break-Even-Volume from the information given below: Sales 50,000 units Rs. 5.00 per unit Variable cost Rs. 3.00 per unit Fixed cost Rs. 70,000 Changes: (i) Price changes by 20%. (ii) Volume decreases to 40,000 units. (iii) Variable cost increases to Rs 3.50 per unit. (iv) Fixed cost decreases by 10%.

2450


plz send me previous model question paper for moh to my mail plz it's urgent my mail id is zeeta_lobo@yahoo.com

4514


please send me the L&T Emb. sys. placement papers and entire details of pattren

2455


In any Hyderabd institute you can find these word commomly used by faculties ... Yes or no / Right or wrong so funny...

2317


What are some of the major challenges facing AI research today?

205


Are you in favor of demonetization?

1228


hi friends, dis is ramana reddy.i have been workining in bulk drugs as QC chemist.i would like 2 change d company.i want sample RESUME,OFFER LETTER,APPOINTMENT LETTER,PAY SLIP.if any body has these documents,pls send 2 my mail id i.e ramanareddy.sdpl@ymail.com

2433


hi can somebody please post questions that are commonly asked in bba enterance exam in interwiew sessions...also it would be of great help if someone could mail me the previous years papers of the enterance exam of bba of cbs...

2285


What does "accelerating AI functions" mean, and why is it important?

153