• + 0 comments

    Wow I actually did it!

    How my algorithm works: Try putting the word at the front of your list in the board at all possible positions. (No, actually. i <- [0..9]; j <- [0..9]) For each successful placement, continue with the rest of the list of words. I ended up using do notation on lists and maybeToListing some information.

    I'm super proud of it! On the other hand, I'm really glad we don't have hacking on ... uh, on HackerRank ... unlike some other platforms, like CodeForces ... hm.

    Here it is! Sorry for the hiding, I'm lazier than Haskell.