LC 965. Univalued Binary Tree

A binary tree is univalued if every node in the tree has the same value.

Return true if and only if the given tree is univalued.

太简单了,签到题。

猜你喜欢

转载自www.cnblogs.com/ethanhong/p/10199991.html