$$ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Self-defined math definitions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Math symbol commands \newcommand{\intd}{\,{\rm d}} % Symbol 'd' used in integration, such as 'dx' \newcommand{\diff}{{\rm d}} % Symbol 'd' used in differentiation ... $$
摘要: 题目描述查看:https://leetcode-cn.com/problems/maximum-subarray/ 题目的意思是,给定一个数组,从这个数组里找子序列的最大值。 思路 可以把整个问题做个拆分,拆分成求前n-1个序列的最大子序列的值。 把问题规模缩小到n=4,数列为[-2,1,-3,4] 阅读全文
posted @ 2020-04-05 15:52 V丶vvv 阅读(323) 评论(0) 推荐(0) 编辑