Showing posts with label greedy. Show all posts
Showing posts with label greedy. Show all posts

Monday, December 22, 2014

[LeetCode]Gas Station

这个问题的突破点就是如果在一个可以开始的station x开始,到了y发现没有办法前进了,那么在x和y之间所有的点开始都不可能过y。