I will choose the point where amount of fuel is maximum.... choose the shortest path from two direction (clockwise or anticlockwise)......
With regards, Praveen Raj DCE-IT 3rd yr 9999735993 [email protected] On Mon, Oct 24, 2011 at 4:36 PM, Aniket <[email protected]> wrote: > Suppose there is a circle. You have five points on that circle. Each > point corresponds to a petrol pump. You are given two sets of data. > > 1. The amount of petrol that petrol pump will give. > 2. Distance from that petrol pump tp the next petrol pump. > > (Assume for 1 lit Petrol the truck will go 1 km) > > Now 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). > Give o(n) solution. You may use o(n) extra space. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
