2 ms·
The first color is #015. Regarding computing it for all targets, I optimized it by precomputing the value of guessResults in the first iteration, since it's al
by n2d4 3y ago
The first color is #015.
Regarding computing it for all targets, I optimized it by precomputing the value of guessResults in the first iteration, since it's always the same (no matter the target color), which saves most of the computation. I removed the optimization so the code wouldn't be so long here.