摘要: 前言 【LeetCode 题解】系列传送门: http://www.cnblogs.com/double-win/category/573499.html 1.题目描述 Find the contiguous subarray within an array (containing at least one number) which has the largest sum... 阅读全文
posted @ 2014-05-22 22:56 Double_win 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 前言 【LeetCode 题解】系列传送门: http://www.cnblogs.com/double-win/category/573499.html 1.题目描述 There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You h... 阅读全文
posted @ 2014-05-22 22:38 Double_win 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 题目描述: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the tot 阅读全文
posted @ 2014-05-22 16:53 Double_win 阅读(231) 评论(0) 推荐(0) 编辑