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 10858Post New Qatar University Interview Questions
a x company deduct tds against our bills so how i entry this type of transaction in talyy 9.0 ?
What is cost benefit analysis (cba)?
why the difference arise between HT reading & LT reading (submeters fixed in complexes, apartments etc)if the power factos exceed from 0.9 to 1 can the ht meter reads fast?
What are important features of linq?
What is the basic principle of elisa?
Define Call Money Rate?
Differentiate apps schema from other schemas?
In MS Access the long and short date option does not show 4 digit years. how do I achieve the mm/dd/yyyy format?
How do you pronounce django in python?
Can we read/write/delete as we do in normal data operations in the case of append blob?
What is the difference between router and switch?
Are data mart and dwh normalized or denormalized? Do both of them exist in the same tier?
What is need of start 0? In steed of can we use anyother numerics? If we use what will happen?
Can arraylist be null?
Whats the implicit name and type of the parameter that gets passed into the class set method?