摘要: https://leetcode.cn/problems/all-paths-from-source-to-target/description/ class Solution { List<List<Integer>> res = new ArrayList<>(); int[][] g; // 阅读全文
posted @ 2024-09-14 01:32 风乐 阅读(11) 评论(0) 推荐(0)
摘要: https://leetcode.cn/problems/daily-temperatures/ class Solution { public int[] dailyTemperatures(int[] temperatures) { // 经典单调栈 // 核心思想就是及时去除无用数据,保证栈中 阅读全文
posted @ 2024-09-14 00:02 风乐 阅读(8) 评论(0) 推荐(0)