摘要: https://leetcode.cn/problems/house-robber-iii/description/ 此前做过此题,不过时隔一年再做一遍有新的理解 class Solution { private Map<TreeNode,Integer> vis = new HashMap<>() 阅读全文
posted @ 2026-02-03 16:30 风乐 阅读(7) 评论(0) 推荐(0)
摘要: https://leetcode.cn/problems/trionic-array-i/ class Solution { public boolean isTrionic(int[] nums) { // 题意,判断给定数组先单调升再单调降再单调升 // 等价于判断数组是否存在两个拐点,第一个拐 阅读全文
posted @ 2026-02-03 16:19 风乐 阅读(7) 评论(0) 推荐(0)