0 0 votes Consider the following pseudo code. What is the total number of multiplications to be performed? D = 2 for i = 1 to n do for j = i to n do for k = j + 1 to n do D = D * 3 (a) Half of the product of the 3 consecutive integers (b) One-third of the product of the 3 consecutive integers (c) One-sixth of the product of the 3 consecutive integers (d) None of the above Solution: Option (c) Algorithms algorithms time-complexity + – Mak Indus 620 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes https://www.geeksforgeeks.org/gate-gate-cs-2014-set-1-question-51/ sayakpaul answered Dec 21, 2018 sayakpaul comment Share Follow 0 reply Please log in or register to add a comment.