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 10740Post New Qatar University Interview Questions
In hogs a gene that produces a white belt around the animal's body is dominant over its allele for a uniform body. Another independent dominant gene produces fusion of the hoof (syndactyly). Suppose a uniformly colored hog homozygous for syndactyly is mated with a normal footed hog homozygous for the belted character. What would be the phenotype of the F1? If the F1's interbreed, what would be the phenotypic ratio of the F2?
What is microsoft windows sharepoint services? How is it related to microsoft office sharepoint server 2007?
What is standalone xml?
What is untyped dataset?
How to retrieve data from database in wpf?
What program is used to store the data source file?
How to Create a Prompted Query?
Is any server permissions required for laravel?
How to create a function in vbscript?
What are the responsibilities of clinical lab technician?
Name 5 different addressing modes?
which parameter is used to check the syntax of a jcl without executing it?
What is the difference between the test plan and test strategy
What is wan?
Tell me what are the commonly found errors in embedded systems?