08 2022 档案
摘要:class Solution: def maxValue(self, root: TreeNode, k: int) -> int: def dfs(root): # 空节点价值全为0 res = [0]*(k+1) if not root: return res # 递归获取左右节点的状态 lef
阅读全文
摘要:1.选择排序 java //selectSort 每次将当前元素替换为后面最小的元素//Java public static void selectSort(int [] nums){ int N = nums.length; for(int i = 0; i < N; i ++){ int min
阅读全文