Android Software Engineer Interview Questions

8,344 android software 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 8291 - 8300 interview questions

Glassdoor has 8,344 interview questions and reports from Android software engineer interviews. Prepare for your interview. Get hired. Love your job.