Flow Free
Jump to navigation
Jump to search
This problem asks us to solve "flow free," a fun mobile game. (or at least determine whether a given puzzle is solveable).
The limiting to 4x4 is a giveaway that this is brute force.
In the 4 color case, we have 8 uncolored cells, each which may take one of 4 colors. that leaves 4^8=65k combinations, each which we can trivially validate by BFS
In the 3 color case, we have 10 uncovered celles, each of which may take one of 3 colors. That leaves 3^10=59k.
Brute force is fast enough