Skip to content

Commit

Permalink
added Diamond kata
Browse files Browse the repository at this point in the history
  • Loading branch information
emilybache committed Aug 12, 2024
1 parent ac487e1 commit 5a9750e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions _kata_descriptions/diamond.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: Diamond
kata_name: diamond
---

Diamond
-------

Given a letter print a diamond starting with 'A' with the supplied letter at the widest point.

For example: print-diamond 'E' prints

<pre>
A
B B
C C
D D
E E
D D
C C
B B
A
</pre>
For example: print-diamond 'C' prints

<pre>
A
B B
C C
B B
A
</pre>

### Acknowledgments
This kata is described on cyber-dojo.org

0 comments on commit 5a9750e

Please sign in to comment.