134
-
[LeetCode] 134. Gas StationLeetCode 2022. 1. 21. 12:24
https://leetcode.com/problems/gas-station/ Gas Station - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Gas Station - Medium 주유소가 줄지어 있다. 이 주유소는 동그랗게 연결되어 있고, 인덱스가 오른쪽으로 가는 것은 반시계 방향으로 움직이는 것을 의미한다. i번째 주유소에서 gas[i]만큼의 기름을 채울 수 있고, 반시계 방향으로 다음 주유소로 가는데 cost[i]만큼의 기름을 사용한다고 할 때, 도중..