Home / Expert Answers / Computer Science / you-have-taken-a-new-electric-car-on-a-weekend-you-are-planning-to-travel-to-n-areas-and-all-the-ar-pa281

(Solved): You have taken a new electric car. On a weekend you are planning to travel to n areas and all the ar ...



You have taken a new electric car. On a weekend you are planning to travel to n areas and all the areas are in a circular route and the area you live in is in the centre of the areas. There is a problem that your car is low on charge and the charging centre of your area is low on reserve, it has only enough energy which will allow you to go to any of the n area. The same problem is in all the areas so the charging centres have put a charge limit per person in the charging centres of all the cities. You decided to stay in a hotel for the weekend and come back the next day. You have to decide in which town you will book a hotel so that you can successfully travel in all the cities in dockwise direction and successfully return back to the area where you have booked the hotel 5 Input format: Line 1: n-> no of areas Line 2: array of numbers indicating charge limit of the ith city. Line 3: array of numbers indicating the charge needed to travel out of the ith city.
write in any language



We have an Answer from Expert

View Expert Answer

Expert Answer


solution The best course of action will depend on the specific values of n, the charge limit, and the
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe