979. Distribute Coins in Binary Tree

题目描述 Given the root of a binary tree with N nodes, each node in the tree has node.val coins, and there are N coins total. In one move, we may choose two adjacent nodes and move one coin from one node
相关文章
相关标签/搜索