4 ms·
The regular expression solution is easily my favorite. The way it shifts the board to find all the diagonals is a great gotcha, it took me a few minutes to und
by cypherpunks01 15y ago
The regular expression solution is easily my favorite. The way it shifts the board to find all the diagonals is a great gotcha, it took me a few minutes to understand what the heck was going on.
- callahad 15y agoThanks! I'm really pleased with how deceptively simple it looks on the surface. Once you actually try to read the code, though....