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/

全部评论

相关推荐

dian3b:挺妙的,如果上纲上线显得不合人心,但是这样以来既能监督适当摸鱼,也有一定的人文关怀。
摸鱼被leader发现了...
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务