Skip to content

Instantly share code, notes, and snippets.

@rojoangel
Last active February 16, 2017 23:16
Show Gist options
  • Save rojoangel/fc0c4abb674766ae37d87324e3107245 to your computer and use it in GitHub Desktop.
Save rojoangel/fc0c4abb674766ae37d87324e3107245 to your computer and use it in GitHub Desktop.
Diamond kata

Given a letter, print a diamond starting with ‘A’ with the supplied letter at the widest point.

For example: print-diamond ‘C’ prints

  A
 B B
C   C
 B B
  A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment