Google Interview Question

Search question - some minor modification to binary search.

Interview Answer

Anonymous

Nov 27, 2019

Input set of petrol pumps placed on the path. Your car has some capacity. Need to complete the path such that you take minimum number of stops. How many stops do you need to complete the path.