原文:[LeetCode] Shortest Unsorted Continuous Subarray 最短无序连续子数组

Given an integer array, you need to find onecontinuous subarraythat if you only sort this subarray in ascending order, then the whole array will be sorted in ascending order, too. You need to find th ...

2017-05-19 06:21 5 8753 推荐指数:

查看详情

LeetCode:152_Maximum Product Subarray | 最大乘积连续数组 | Medium

题目:Maximum Product Subarray 这道题属于动态规划的题型,之前常见的是Maximum SubArray,现在是Product Subarray,不过思想是一致的。当然不用动态规划,常规方法也是可以做的,但是时间复杂度过高(TimeOut),像下面这种形式 ...

Mon Oct 06 04:20:00 CST 2014 2 11092
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM