2月17日-备孕春招40天-第36天
①leectcode
最短无序子数组:
https://leetcode-cn.com/problems/shortest-unsorted-continuous-subarray/submissions/
和为k的子数组(两个for循环或使用map记录前缀和)
https://leetcode-cn.com/problems/subarray-sum-equals-k/submissions/
二叉树直径(使用公共变量记录最大直径,然后dfs返回值是depth)
https://leetcode-cn.com/problems/diameter-of-binary-tree/submissions/
二叉树转累加树
https://leetcode-cn.com/problems/binary-search-tree-to-greater-sum-tree/submissions/