3 ms·
I'd use brute force, since there aren't that many possibilities.
by kens 3y ago
I'd use brute force, since there aren't that many possibilities.
- mdp2021 3y ago> brute force But that does not really fit with the intellectual challenge :)
- kens 3y agoBut it's a programming challenge :-) My quick Python program gets 4 solutions out of 1296 possibilities: ['RGBY', 'GRYB', 'BYRG', 'YBGR'] So the answer is that each position has 25% chance of the four colors R, G, B, Y and 0% chance of the other two colors.