Posts by lyxal
Over on the Code Golf StackExchange site, there is a meta consensus that answers can be scored in fractional bytes if there exists such an encoding method. So, to quote the linked consensus questi...
Vyxal, 1 byte . Try it Online! Very simple 1 byter
Vyxal, 19 18 bytes 16Ḣλ»≤ṪḢ»3τ?nτİ∑;∴ Try it Online! The link goes to a program which has every test case. -1 thanks to Steffan Explained (old) 16Ḣλ?$τ»≤ṪḢ»3τ$İ∑;O 16Ḣ # Th...
Vyxal, 4 bytes KƛtO Try it Online! Explained KƛtO Kƛ # For each prefix of the input tO # How many times does the tail occur in the prefix?
Vyxal o, 5 bytes ~$"," Try it Online! I'd say this counts, because $ is quite literally "swap the top two items on the stack". Explained ~$"," ~$ # Swap the top two items, but peek inste...
Vyxal, 1 byte Ċ Try it Online! Yes, there really is a built-in for this.
- ← Previous
- 1
- 2
- Next →
