News for hackers. Stuff that matters.
Re:How to Interview Engineers by jonahx on Monday October 12, 2020 @04:59PM (#24759385)
> The solution is only about ~100 lines.

    wins=. 9 3 $ 0 1 2  3 4 5  6 7 8  0 3 6  1 4 7  2 5 8  0 4 8  2 4 6
    winner=. # e. 3 + wins #@-.~"1 ]
    isover=. [: +./ ] winner/.~ 2 | #\
    fullgame=. {.~ 1 + 1 i.~ isover\
    all=. (i.!9) A. i.9
    echo # ~. fullgame"1 all

https://tio.run/##NU3LDsFAFN3PVxxqQRq3Rh9UIuE7tItGBiOjTTRYkP...

Or the 1-liner:

    # ~. ({.~ 1 + 1 i.~ ([: +./ ] (# e. 3 + w #@-.~"1 ])/.~ 2 | #\)\)"1 (i.!9) A. i.9
which surely could be golfed even further.
Re:How to Interview Engineers by jl2718 on Tuesday October 13, 2020 @10:36PM (#24772570)
What's the language on the one-liner? I know nothing about J, but it doesn't seem to run. Sorry; just a bit fascinated.
Re:How to Interview Engineers by jonahx on Thursday October 15, 2020 @11:09PM (#24797054)