Hewlett Packard Interview Question for Dev Leads
- -2of 2 votes
Input- mail.smohanty February 18, 2016 in India
Question: A real estate company plans to open relief distribution in few cities of a state.
The input in the first Line N(number of cities...2 as per example)
and M(Number of distribution center...5 as per example).
The next lines have the number of population in N(2) cities. (2000 and 5000) as per example.
Only people from a specific city can go to the distribution center of that city.
WAP to find the number of max people those can be accommodated in a distribution center.
The answer is 1000 in this case. As there are 7 distribution center.
First City having 2000 population will have 2 distribution center and second city having 5000 population will have 5 centers.
Therefore Max person that can be accommodated in a center is 1000.
| Report Duplicate | Flag | PURGE
Hewlett Packard Dev Lead Algorithm
Interview Type: Written Test
Open Chat in New Window