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LKJIHGFEDCBA
ABCDEFGHIJKLMNOPQRQPONMLKJIHGFEDCBA
ABCDEFGHIJKLMNOPQPONMLKJIHGFEDCBA
ABCDEFGHIJKLMNOPONMLKJIHGFEDCBA
ABCDEFGHIJKLMNONMLKJIHGFEDCBA
ABCDEFGHIJKLMNMLKJIHGFEDCBA
ABCDEFGHIJKLMLKJIHGFEDCBA
ABCDEFGHIJKLKJIHGFEDCBA
ABCDEFGHIJKJIHGFEDCBA
ABCDEFGHIJIHGFEDCBA
ABCDEFGHIHGFEDCBA
ABCDEFGHGFEDCBA
ABCDEFGFEDCBA
ABCDEFEDCBA
ABCDEDCBA
ABCDCBA
ABCBA
ABA
A
Notes
- You can have any amount of leading and trailing whitespace on all directions, as long as all non-whitespace characters are properly aligned to make the diamond shape.
- A multiline string, character matrix, list of strings, list of lists of characters, and equivalent are acceptable outputs.
- Shortest answer per language, scored in bytes, wins!
[Brain-Flak], 250 bytes …
3y ago
BQN, 19 bytesSBCS ``` ' '+32 …
3y ago
[V (vim)], 21 bytes ¬AZ …
3y ago
Stax, 12 bytes ç ∩<▬%▌ê▓jF …
3y ago
Canvas, 10 7 6 bytes Z[]/ …
3y ago
Japt `-R`, 14 13 bytes …
3y ago
[JavaScript (Node.js)], 78 byt …
3y ago
Vyxal `C`, 8 bytes …
3y ago
[Jelly], 13 bytes ØAUƤz …
3y ago
[Python 3], 99 bytes …
3y ago
Japt `-R`, 11 bytes ;Bå …
3y ago
Post
Canvas, 10 7 6 bytes
Z[]/┼┼
Creates the top portion, centers it, and mirrors it.
-3 bytes from dzaima's hint.
-1, found the 6 byter!
Explanation
Z[]/++
Z push the alphabet
[] get all prefixes
/ diagonalize by padding each line with one less than the previous
++ Quad palindromize, without reflecting letters
0 comment threads