There is an island surrounded by oil mines. You will be given n companies and m oil mines having values. You have to distribute the mines to n companies in a fair manner. Remember the companies can have oil mines adjacent to each other and not in between of each other. After distributing them compute the difference of oil mines from the company getting highest and company getting lowest. This number should be minimum.(then only the distribution can be termed as fair)
Answers
Answered by
0
There is an island surrounded by oil mines. You will be given n companies and m oil mines having values. You have to distribute the mines to n companies in a fair manner. Remember the companies can have oil mines adjacent to each other and not in between of each other. After distributing them compute the difference of oil mines from the company getting highest and company getting lowest. This number should be minimum.(then only the distribution can be termed as fair)
Similar questions