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 11030Min-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 7424write 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 9661Write 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 17463Post New Infosys C++ Code Interview Questions
plese send me the oces/dgfs sylabus and previous year question pattern of electrical engg.?
Are woollen Blankets (Rugs) taxable under CST ? Can unregistered party sell it.
please send the last 5 years {{{JUNIOR ENGINEER - ELECTICAL, ELECTRONICS RRB CHENNAI and secundrabad}}} TECHNICAL question papers TO MY EMAIL ID dinesh100701@gmail.com
Draw the vector diagram and condition for the following: 1) Dyn1 2) Ynd0 3) YnYn0
What is the latest version of scala?
hello sir..iam keen to sit for iocl interview..please forward sample iocl questions to my id: kunal_kv06@yahoo.co.in
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%.
plz send me previous model question paper for moh to my mail plz it's urgent my mail id is zeeta_lobo@yahoo.com
please send me the L&T Emb. sys. placement papers and entire details of pattren
In any Hyderabd institute you can find these word commomly used by faculties ... Yes or no / Right or wrong so funny...
What are some of the major challenges facing AI research today?
Are you in favor of demonetization?
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
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...
What does "accelerating AI functions" mean, and why is it important?