Skip to main content

New answers tagged

0 votes

Looping counter extended

Java (JDK), 88 87 bytes v->{for(int j=1,s=1;;s+=j,j=j%26+1)for(int a=0;a<=s;a++)System.out.write(a<s?j+64:10);} Try it online! -1 byte after a ...
int 21h Glory to Ukraine's user avatar
1 vote

Looping counter extended

05AB1E, 14 bytes 1[DN>.b×,N₂%>+ Try it online. Or alternatively: AuÞ∞<₂%>.¥>×€, Try it online. Original closed ...
Kevin Cruijssen's user avatar
0 votes

Looping counter extended

Google Sheets, 103 bytes To be entered in A1: =LET(R,LAMBDA(R,a,b,i,l,IF(i=ROWS(A:A),l,R(R,a+b,MOD(b,26)+1,i+1,{l;REPT(CHAR(b+64),a)}))),R(R,1,1,1,)) The formula ...
z..'s user avatar
  • 751
2 votes

Looping counter extended

Python 3, 45 bytes a=b=1 while[print(chr(b+64)*a)]:a+=b;b=b%26+1 A full program that prints forever. Try it online!
Jonathan Allan's user avatar
1 vote

Looping counter extended

C++, 113 109 bytes #include<iostream> int i,p=1;int main(){while(p){std::cout<<std::string(p,char(i%26+65))<<'\n';p+=i++%26+1;}} Try it online! -...
Redz's user avatar
  • 151
0 votes

Looping counter extended

PowerShell Core, 45 bytes for(){([char]($c%26+65)+'')*++$i $i+=$c++%26} Try it online!
Julian's user avatar
  • 3,118
4 votes

Looping counter extended

Nekomata, 15 bytes Ňr26%→Ɔ64+$∑→řH Attempt This Online! the original challenge, 5 bytes '*ŇPř Attempt This Online! ...
alephalpha's user avatar
  • 48.5k
2 votes

Looping counter extended

Retina 0.8.2, 46 bytes $ @ {2=T`@L`L`(.)\1* }2=`(.)\1* $&$1 }:T`@L`LA Try it online! Explanation: $ @ Append an ...
Neil's user avatar
  • 172k
5 votes

Looping counter extended

Charcoal, 23 bytes W¹«×⊕↨¹⁺¹﹪υ²⁶§αLυD⎚⊞υLυ Try it online! Link is to verbose version of code. Explanation: W¹« Repeat forever. ...
Neil's user avatar
  • 172k
4 votes

Looping counter extended

JavaScript (Node.js), 74 bytes for(i=0,s=1;;s+=i,i%=26)console.log(String.fromCharCode(++i+64).repeat(s)) Try it online! JavaScript (Node.js), 30 bytes ...
l4m2's user avatar
  • 24.5k
1 vote

Looping counter extended

Python 3, 56 bytes a,b=1,0 while 1: print(chr(b%26+65)*a) a+=b%26+1 b+=1 Try it online!
None1's user avatar
  • 1,065

Top 50 recent answers are included