Tag: Greedy

  1. Leetcode 134 Gas Station

    Leetcode 134 Gas Station There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+…

    on Greedy