2014年6月29日

[LeetCode] Gas Station,转化为求最大序列的解法,和更简单简单的Jump解法。

摘要: LeetCode上 Gas Station是比较经典的一题,它的魅力在于算法足够优秀的情况下,代码可以简化到非常简洁的程度。原题如下Gas StationThere areNgas stations along a circular route, where the amount of gas at... 阅读全文

posted @ 2014-06-29 06:09 Felix Fang 阅读(9620) 评论(2) 推荐(0) 编辑

导航