Problem 427 · Hard

Build an Expression Tree from Tokens

Build a quad tree from a grid of zeros and ones by splitting each region into four until every part is uniform. The visual splits the grid into quadrants recursively.

Open the interactive visualisation