Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 666 characters in body
Source Link
Dennis
  • 211.7k
  • 41
  • 380
  • 830

Jelly, 10 bytes

26RḤ’RØAṁY

Try it online!

How it works

26RḤ’RØAṁY Main link. No Arguments.
26 Set the return value to 26.
 R Range; yield [1, 2, ..., 25, 26].
 Ḥ Unhalve; yield [2, 4, ..., 50, 52].
 ’ Decrement; yield [1, 3, ..., 49, 51].
 R Range; yield [[1], [1, 2, 3], ..., [1, ..., 49], [1, ..., 51]].
 ØA Yield the uppercase alphabet.
 ṁ Mold the alphabet as the array of ranges. This repeats the uppercase
 letters over an over again, until all integers in the range arrays
 have been replaced with letters.
 Y Join, separating by linefeeds.

Jelly, 10 bytes

26RḤ’RØAṁY

Try it online!

Jelly, 10 bytes

26RḤ’RØAṁY

Try it online!

How it works

26RḤ’RØAṁY Main link. No Arguments.
26 Set the return value to 26.
 R Range; yield [1, 2, ..., 25, 26].
 Ḥ Unhalve; yield [2, 4, ..., 50, 52].
 ’ Decrement; yield [1, 3, ..., 49, 51].
 R Range; yield [[1], [1, 2, 3], ..., [1, ..., 49], [1, ..., 51]].
 ØA Yield the uppercase alphabet.
 ṁ Mold the alphabet as the array of ranges. This repeats the uppercase
 letters over an over again, until all integers in the range arrays
 have been replaced with letters.
 Y Join, separating by linefeeds.
Source Link
Dennis
  • 211.7k
  • 41
  • 380
  • 830

Jelly, 10 bytes

26RḤ’RØAṁY

Try it online!

AltStyle によって変換されたページ (->オリジナル) /