lecood
哆啦A梦~~
这个作者很懒,什么都没留下…
展开
-
LeetCode:Count and Say(数数并说)
题目 The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3. 21 4. 1211 5. 11122112345 1 is read off as “...转载 2018-12-08 11:15:05 · 282 阅读 · 0 评论 -
Leetcode 312 打气球 Burst Balloons C++ 史上最详细题解系列
Given n balloons, indexed from 0 to n-1. Each balloon is painted witha number on it represented by array nums. You are asked to burst allthe balloons. If the you burst balloon i you will get nums[left] * nums[i] * nums[right] coins. Here left and right are转载 2018-12-09 12:08:18 · 509 阅读 · 0 评论 -
Leetcode 053 最大子序和 python 分治+动态规划
给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 示例: 输入: [-2,1,-3,4,-1,2,1,-5,4], 输出: 6 解释: 连续子数组 [4,-1,2,1] 的和最大,为&am转载 2018-12-09 12:35:58 · 166 阅读 · 0 评论