Android Engineer Interview Questions

9,765 android engineer interview questions shared by candidates

Suppose there is an int array 1,4,3,6,2,1. These are the height of the temple. We have unlimited money and we have to donate at least some money to each temple.If the adjacent temple has the higher height then we have to donate bit more than the previous lower height temple.If we donated 1 rupee for lower height temple than we can donate 2 rupees for the higher height temple.Find the sum of least donation for the scenario?
avatar

Android Developer

Interviewed at Flipkart

3.8
Sep 29, 2017

Suppose there is an int array 1,4,3,6,2,1. These are the height of the temple. We have unlimited money and we have to donate at least some money to each temple.If the adjacent temple has the higher height then we have to donate bit more than the previous lower height temple.If we donated 1 rupee for lower height temple than we can donate 2 rupees for the higher height temple.Find the sum of least donation for the scenario?

Viewing 9721 - 9730 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 9,765 interview questions and reports from Android engineer interviews. Prepare for your interview. Get hired. Love your job.