Problem 2331 · Easy

Evaluate Boolean Binary Tree

Evaluate a full binary tree bottom-up, where leaves are booleans and internal nodes apply OR or AND to their children.

Open the interactive visualisation