Available question text
Given a binary tree, count how many subtrees are "univalue" (every node in the subtree has the same value). The core challenge is to determine for each node, via a bottom-up (postorder) traversal, whether its subtree is uniform without re-checking nodes, yielding an O(n) solution.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Grab
Leetcode 250. Count Univalue Subtrees
Reported Sep 3, 2026 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source