摘要:
java import java.util.Arrays; class Solution { public int lengthOfLIS(int[] nums) { int n = nums.length; int[] dp = new int[n]; Arrays.fill(dp, 1);//c 阅读全文
2021年12月25日 #
摘要:
dp[i]:以第i天为结尾,平滑下降阶段的数目 dp[i]=dp[i-1]+1(prices[i-1]-1==prices[i]) java class Solution { public long getDescentPeriods(int[] prices) { //init int n = p 阅读全文