diff --git a/circularTour b/circularTour new file mode 100644 index 0000000..8fc7f77 --- /dev/null +++ b/circularTour @@ -0,0 +1,18 @@ +int tour(petrolPump p[],int n) + { + int startPoint=0; + int out_of_tank=0; + int in_tank=0; + for(int i=0;i=0){ //if our current tank oil lvel can travel all throught the losses + return start; + } + return -1; //without double while loop + }