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 10737Post New Qatar University Interview Questions
CAN WE DETERMINE THE PEAK PURITY IN GAS CHROMATOGRAPHY ANALYSIS?
Explain 'structure padding'?
How to check composer is installed or not in laravel?
How do I access my outlook email from home?
What is advantage of using apply family of functions in r? How do you use lambda in python?
How to implement validations in codeigniter?
How transaction file different from that of a sort file?
What is datapool cursor?
when u prefer lsmw?
how to write defects in excel sheets when defects occured
What is application assembler?
Why c is known as a mother language?
What are the shortcut keys in laptop?
while raising credit note for price difference,is it mandatory to charge excise duty 12.36% and vat 14.5% on local supplies
What is the significance of impression share metric?