Boolean Expression Tree with Leaf Flips
Company: Google
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Onsite
Quick Answer: This question evaluates a candidate's ability to work with tree data structures and apply efficient update propagation techniques. It tests practical understanding of recursive tree evaluation, logical operator semantics, and incremental recomputation by traversing ancestor paths rather than re-evaluating the full tree.