Yeah..right..!   u have to select continuous 10 petrol pumps , so just 
traverse through every set of 10 pumps with complexity of o(n). e.g. (1,10) 
(2,11) (3,12)....(91 ,100)

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/MqV_rqnIbkMJ.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to