摘要: 题目:Say you have an array for which the ith element is the price of a given stock on day i.Design a... 阅读全文
posted @ 2015-10-11 16:45 JSRGFJZ6 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 题目:Implement atoi to convert a string to an integer.思路:一路走下去注意最大值最小值代码:class Solution {public://ht... 阅读全文
posted @ 2015-10-11 13:22 JSRGFJZ6 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 题目:There are N gas stations along a circular route, where the amount of gas at station i is gas[i]... 阅读全文
posted @ 2015-10-11 13:13 JSRGFJZ6 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目:Now, instead outputting board configurations, return the total number of distinct solutions.思路:... 阅读全文
posted @ 2015-10-11 00:01 JSRGFJZ6 阅读(113) 评论(0) 推荐(0) 编辑