Hackerrank Crossword Puzzle Javascript Solution

Last week I come across a code challenge at Hackerrank

This is a problem about putting the keywords at the available zones on a crossword puzzle for both horizontal and vertical directions.

Here is the code!

This was fun to solve it. Let me try to explain step by step with the function names on code;

  1. First of all, we need a function to find all the available zones. This is a little bit tricky because of the vertical direction. findSpaces()

Happy coding!

https://github.com/eferhatg/Hackerrank-Crossword-Puzzle-Javascript-Solution

Mostly developer, almost traveller, already gamer http://eferhatg.com/

Mostly developer, almost traveller, already gamer http://eferhatg.com/