|
|
|
|
|
by tictac-toe
2077 days ago
|
|
Ok, took me 20 minutes, and I forgot to count the draws–I only counted the games when there is a winner. But I think his math doesn't work out. The solution is only about ~100 lines. If typing speed was the bottleneck, it would only take 2 or 3 minutes from start to finish. > The most talented candidates will think about it for a few seconds, then write the program as fast as they can type (and they'll type fast). You can almost sense their frustration because they think way faster than the keyboard allows them to interface with the computer. Typing speed is their bottleneck. (...) The whole process will take about 10 minutes from start to finish. |
|
Or the 1-liner:
which surely could be golfed even further.