Find the first circular tour that visits all petrol pumps | GeeksforGeeks Suppose there is a circle...

Please Visit: http://ift.tt/1ajReyV



Find the first circular tour that visits all petrol pumps | GeeksforGeeks

Suppose there is a circle. There are n petrol pumps on that circle. You are given two sets of data.

1. The amount of petrol that petrol pump will give.

2. Distance from that petrol pump to the next petrol pump.

Calculate the first point from where a truck will be able to complete the circle (The truck will stop at each petrol pump and it has infinite capacity). Expected time complexity is O(n).

http://ift.tt/1wemLPW

http://ift.tt/1lHLHNt



Find the first circular tour that visits all petrol pumps | GeeksforGeeks







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1wemLQ3

via LifeLong Community

No comments:

Post a Comment