Available question text
Given a binary tree that encodes a boolean expression (leaves are 0/1 and internal nodes are AND/OR gates, with some gates allowed to be changed), find the minimum number of flips — toggling leaf values or changing gate types where permitted — required so the root evaluates to a specified target value. Core challenge: combine gate semantics and flip options bottom-up to compute the minimal flips for each subtree.
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
No company association
Leetcode 2313. Minimum Flips in Binary Tree to Get Result
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source