2673. 使二叉树所有路径值相等的最小代价
使二叉树所有路径值相等的最小代价
- 难度:
medium - 原始链接: https://leetcode.cn/problems/make-costs-of-paths-equal-in-a-binary-tree
- 标签:
贪心
解法一: 贪心
1 | func minIncrements(n int, cost []int) int { |
medium贪心1 | func minIncrements(n int, cost []int) int { |
Update your browser to view this website correctly.&npsb;Update my browser now