Comments on Diagonalized alphabet
Parent
Diagonalized alphabet
Task
Print the following:
ABDFHJLNPRTVXZ
CABDFHJLNPRTVX
ECABDFHJLNPRTV
GECABDFHJLNPRT
IGECABDFHJLNPR
KIGECABDFHJLNP
MKIGECABDFHJLN
OMKIGECABDFHJL
QOMKIGECABDFHJ
SQOMKIGECABDFH
USQOMKIGECABDF
WUSQOMKIGECABD
YWUSQOMKIGECAB
and nothing else. You may return a multiline string or an array representing the box.
You may have trailing whitespace in your output if it is a multiline string.
This is code-golf. Shortest answer in bytes bins.
BQN, 18 bytesSBCS ``` 'A'- …
3y ago
Canvas, 17 11 bytes Z2n⤢J …
3y ago
[Python 2], 61 bytes …
3y ago
Japt `-R`, 16 bytes This fe …
3y ago
[APL (Dyalog Unicode)], 31 byt …
3y ago
Ruby, 52 51 bytes 13.times{ …
3y ago
[C (clang)], 206 bytes …
3y ago
Post
Python 2, 61 bytes
i=12;exec"print'YWUSQOMKIGECABDFHJLNPRTVXZ'[i:14+i];i-=1;"*13
I tried to do it without writing the full list 'YWUSQOMKIGECABDFHJLNPRTVXZ' but couldn't get less than 61 bytes. Do not hesitate to give me advice :)
0 comment threads