摘要:
今天是第五十九天,有经典的接雨水问题 ● 503.下一个更大元素II class Solution { public int[] nextGreaterElements(int[] nums) { if(nums == null || nums.length <= 1) { return new i 阅读全文
posted @ 2022-12-10 16:33
小猫Soda
阅读(28)
评论(0)
推荐(0)
摘要:
今天是训练营第五十八天,是最后一天单调栈的开始 739. 每日温度 class Solution { public int[] dailyTemperatures(int[] temperatures) { int n = temperatures.length; int[] res = new i 阅读全文
posted @ 2022-12-10 16:28
小猫Soda
阅读(20)
评论(0)
推荐(0)
摘要:
今天是第五十七天,也是动态规划的最后一天 647. 回文子串 class Solution { public int countSubstrings(String s) { int n = s.length(); int res = 0; boolean[][] dp = new boolean[n 阅读全文
posted @ 2022-12-10 13:12
小猫Soda
阅读(23)
评论(0)
推荐(0)

浙公网安备 33010602011771号