|
1 | 1 | # Description |
2 | 2 |
|
3 | | -Your objective is to draw out a diamond using letters and spaces. |
| 3 | +Your goal is to create a diamond shape using letters and spaces. |
| 4 | + |
| 5 | +You're given a letter, which represents the widest point of the diamond. |
4 | 6 |
|
5 | | -You're given a letter which signifies the widest point of the diamond. |
6 | 7 | Let's look at some examples. |
7 | 8 |
|
8 | 9 | Diamond for letter 'A': |
|
39 | 40 | ## Requirements |
40 | 41 |
|
41 | 42 | These are the full requirements: |
42 | | - |
43 | | -- The first row contains one 'A'. |
44 | | -- The last row contains one 'A'. |
45 | | -- All rows, except the first and last, have exactly two identical letters. |
46 | | -- All rows have as many trailing spaces as leading spaces (this might be 0). |
47 | | -- The diamond is horizontally symmetric. |
48 | | -- The diamond is vertically symmetric. |
49 | 43 | - The diamond has a square shape (width equals height). |
50 | 44 | - The letters form a diamond shape. |
51 | 45 | - The top half has the letters in ascending order. |
52 | 46 | - The bottom half has the letters in descending order. |
| 47 | +- All rows, except the first and last, have exactly two identical letters. |
| 48 | +- The first row contains one 'A'. |
| 49 | +- The last row contains one 'A'. |
| 50 | +- All rows have as many trailing spaces as leading spaces (this might be 0 spaces). |
| 51 | +- The diamond is horizontally symmetric. |
| 52 | +- The diamond is vertically symmetric. |
53 | 53 | - The four corners (containing the spaces) are triangles. |
0 commit comments