Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

77%
+5 −0
Challenges Create an Alphabet Diamond

V (vim), 21 bytes ¬AZ¬YA|òlÄ26|xx>>YGpH Try it online! Explanation: ¬AZ " Insert every character from A to Z ¬YA " Insert every character from Y...

posted 4y ago by DJMcMayhem‭  ·  edited 4y ago by DJMcMayhem‭

Answer
#2: Post edited by user avatar DJMcMayhem‭ · 2021-02-08T17:36:26Z (almost 4 years ago)
  • # [V (vim)], 21 bytes
  • ¬AZ¬YA|òlÄ26|xx>>YGpH
  • [Try it online!][TIO-kkwtxi6o]
  • [V (vim)]: https://github.com/DJMcMayhem/V
  • [TIO-kkwtxi6o]: https://tio.run/##K/v//9Aax6hDayIdaw5vyjncYmRWU1FhZxfpXuDx/z8A "V (vim) – Try It Online"
  • Hexdump:
  • 00000000: ac41 5aac 5941 7cf2 6cc4 3236 7c78 783e .AZ.YA|.l.26|xx>
  • 00000010: 3e59 4770 48 >YGpH
  • # [V (vim)], 21 bytes
  • ¬AZ¬YA|òlÄ26|xx>>YGpH
  • [Try it online!][TIO-kkwtxi6o]
  • [V (vim)]: https://github.com/DJMcMayhem/V
  • [TIO-kkwtxi6o]: https://tio.run/##K/v//9Aax6hDayIdaw5vyjncYmRWU1FhZxfpXuDx/z8A "V (vim) – Try It Online"
  • Explanation:
  • ¬AZ " Insert every character from A to Z
  • ¬YA " Insert every character from Y to A
  • | " Go back to the beginning of this line
  • ò " While True...
  • l " Move to the right (if there is only one character
  • " on this line, break the loop)
  • Ä " Duplicate this line upwards
  • 26| " Go to the 26th character on this line
  • xx " Delete two characters
  • >> " Indent this line with one space
  • Y " Yank this line
  • G " Go to the last line
  • p " Paste the line that was just yanked downwards
  • H " Go back to the first line
  • " (Implicit) End loop
  • Hexdump:
  • 00000000: ac41 5aac 5941 7cf2 6cc4 3236 7c78 783e .AZ.YA|.l.26|xx>
  • 00000010: 3e59 4770 48 >YGpH
#1: Initial revision by user avatar DJMcMayhem‭ · 2021-02-08T17:09:05Z (almost 4 years ago)
# [V (vim)], 21 bytes

    ¬AZ¬YA|òlÄ26|xx>>YGpH

[Try it online!][TIO-kkwtxi6o]

[V (vim)]: https://github.com/DJMcMayhem/V
[TIO-kkwtxi6o]: https://tio.run/##K/v//9Aax6hDayIdaw5vyjncYmRWU1FhZxfpXuDx/z8A "V (vim) – Try It Online"

Hexdump:

    00000000: ac41 5aac 5941 7cf2 6cc4 3236 7c78 783e  .AZ.YA|.l.26|xx>
    00000010: 3e59 4770 48                             >YGpH