Question: candies : [ 2 , 3 , 5 , 2 ] if a = 2 , b = 3 , c = 5 , and

candies :[2,3,5,2]
if a=2, b=3, c=5, and d=2, The child can increase any of these integers by 1 at most 4 times. If the child picks integer c and integer d to increase each of them twice, the new values will become a=4, b=3, c=5, and d=4. Accordingly, the child will get 4x3x5x4=240 candies. In any given case, what is the maximum value of a x b x c x d the child can achieve with these operations?
a) Design an algorithm to solve this problem with the least possible complexity,
b) Analyses the complexity of your solution.
c) Develop a python code to implement your efficient algorithm. [The marks depend on the correctness of the code, indentation, comments, test-case]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!