Question: Input 1 : an integer n representing the available number of water glass Input: an integer array arr representing the amount of water in the

Input 1 : an integer n representing the available number of water glass
Input: an integer array arr representing the amount of water in the i th glass
We need output specification : return an integer value representing the maximum possible height of the tree for example 1 as input 1: 3, input 2: (2,1,2) output must be 3 example 2 as input 1:1, input 2: (5)

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 Databases Questions!