Petrol Pump | Queue | C++ Solution
Petrol Pump, is a Queue related problem and in this post we will see how we can solve this challenge in C++
Given Petrol pumps with their petrol qty,and the distance to the next petrol pump. Find the starting point from where if the track starts all the petrol pumps can be travelled
Please check the main.cpp snippet for the solution.
This solution originally posted at: Github by @susantabiswas