Hacktoberfest - first 5 PR - part 1


The Repo

As the Release 0.2 of DPS909, I have to take part in the event Hacktoberfest and create 5 PR. All my works will be on the repository hackoberfest-2k18-katas, which is a collection of programming problems, puzzles from beginner to advanced levels. This blog series having 5 parts, will cover all 5 PR.

1st PR - wordSpiral

The first issue is an interesting puzzle, where only inputs and outputs are given. The challenge is that we have to figure out ourselves how the logic works without any descriptions.

  
There are 3 examples as the hints. Lets take a look to the similarities of the three:
  • Inputs are strings, and outs are word spirals (2d character images)
  • The word spirals start from the last characters of the strings
  • The word spirals start at bottom right corner, first directions are always to the right
  • When changing characters, they turn right
  • The numbers of repeated characters before changing are fixed, and map to the pattern - a:1, b:2, ..., z:26

Links

Comments

Popular Posts