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 8979Post New Qatar University Interview Questions
What made you decide to be a dental assistant?
What are the mrp procedures available in mm-cbp (consumption based planning)?
Can't one material be assigned to more than one operation in a routing, why?
How to create a table index in mysql?
Explain the architecture models of SQL Server?
If all is successful, what should main return a) 0 b) 1 c) void
How to create test case scenario?
What are the current happenings that are taking place in the banking industry?
Classify the urban co-operative banks?
Why do we use KMnO4 in the test of control of obsorbance ? and why do we take specific quantity i.e 57-63mg?
What is the starting point of code execution in jquery?
What it means by test harness?
Who built microsoft excel?
What is a namenode?
How do you use compareto?