摘要: ```c++ class Solution { public: int longestUnivaluePath(TreeNode* root) { if(root == nullptr) return 0; int ans = 0; univalue(root, &ans); return ans; } private... 阅读全文
posted @ 2019-07-25 11:54 明卿册 阅读(134) 评论(0) 推荐(0) 编辑