The Hollow Diamond

The Hollow Diamond

Your function should return a multiline string of unique lowercase letters in alphabetical order. The characters should be placed in a form of hollow rhombus (diamond), along its edges, starting from the top vertex.

For this purpose you are given three values (for their constraints see Preconditions):

  • side - number of letters in each side of the rhombus;
  • length - total number of letters you should use;
  • cw - clockwise flag, which shows in what direction the letters must go (if true - letters should be placed in clockwise direction).

If it's not...

You should be an authorized user in order to see the full description and start solving this mission.