04 2017 档案

摘要:Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. 示例: Note: 题解: 看着题目的注意事项就 阅读全文
posted @ 2017-04-30 15:11 MT.Queen 阅读(499) 评论(1) 推荐(0)
摘要:题目: Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum 阅读全文
posted @ 2017-04-21 10:58 MT.Queen 阅读(128) 评论(0) 推荐(0)
摘要:本周继续练习动态规划的相关题目。 题目: In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue. For now, su 阅读全文
posted @ 2017-04-16 21:45 MT.Queen 阅读(634) 评论(0) 推荐(0)
摘要:本周课堂上学习的是动态规划,因此在LeetCode上找到相应的题进行练习。 题目: Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum le 阅读全文
posted @ 2017-04-10 12:07 MT.Queen 阅读(214) 评论(0) 推荐(0)