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
相關文章
相關標籤/搜索