Fork me on GitHub
摘要: 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 cost 阅读全文
posted @ 2017-02-28 23:27 hellowOOOrld 阅读(128) 评论(0) 推荐(0) 编辑
摘要: There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following re 阅读全文
posted @ 2017-02-28 17:25 hellowOOOrld 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Update (2015-02-12): For C 阅读全文
posted @ 2017-02-28 15:10 hellowOOOrld 阅读(197) 评论(0) 推荐(0) 编辑