摘要: public int lengthOfLIS(int[] nums) { int len = nums.length, ans = 1; int[] dp = new int[len]; dp[0] = 1; for(int i = 1; i < len; i++) { dp[i] = 1; for 阅读全文
posted @ 2022-02-24 22:35 明卿册 阅读(20) 评论(0) 推荐(0)
摘要: public int maxProduct(int[] nums) { int len = nums.length, ans = nums[0]; int[] dpMax = new int[len], dpMin = new int[len]; dpMax[0] = nums[0]; dpMin[ 阅读全文
posted @ 2022-02-24 22:19 明卿册 阅读(20) 评论(0) 推荐(0)