-
-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# Description | ||
|
||
Your objective is to draw out a diamond using letters and spaces. | ||
Your goal is to create a diamond shape using letters and spaces. | ||
|
||
You're given a letter, which represents the widest point of the diamond. | ||
|
||
You're given a letter which signifies the widest point of the diamond. | ||
Let's look at some examples. | ||
|
||
Diamond for letter 'A': | ||
|
@@ -39,15 +40,14 @@ E E | |
## Requirements | ||
|
||
These are the full requirements: | ||
|
||
- The first row contains one 'A'. | ||
- The last row contains one 'A'. | ||
- All rows, except the first and last, have exactly two identical letters. | ||
- All rows have as many trailing spaces as leading spaces (this might be 0). | ||
- The diamond is horizontally symmetric. | ||
- The diamond is vertically symmetric. | ||
- The diamond has a square shape (width equals height). | ||
Check failure on line 43 in exercises/diamond/description.md GitHub Actions / Lint markdown filesLists should be surrounded by blank lines
|
||
- The letters form a diamond shape. | ||
- The top half has the letters in ascending order. | ||
- The bottom half has the letters in descending order. | ||
- All rows, except the first and last, have exactly two identical letters. | ||
- The first row contains one 'A'. | ||
- The last row contains one 'A'. | ||
- All rows have as many trailing spaces as leading spaces (this might be 0 spaces). | ||
- The diamond is horizontally symmetric. | ||
- The diamond is vertically symmetric. | ||
- The four corners (containing the spaces) are triangles. |