Skip to main content
16 votes

I (rev)?(pal)? the source code, you (rev)?(pal)? the input!

05AB1E, 3 bytes ?R\ ?R\ - Try it online. \R? - .enilno ti yrT ...
Kevin Cruijssen's user avatar
15 votes

Repeat your program to print Fibonacci numbers

R, 12 bytes, no header/footer +(F=+T)->T;F Try it once online! Try it twice Try it three times Try it five times Try it \$n\$ times Right-hand assignment ...
Giuseppe's user avatar
  • 28.6k
14 votes

Repeat your program to print Fibonacci numbers

Piet + ascii-piet, 19 bytes (12×4=48 codels) _TLDJdAaAQIbcr_cc _ Try Piet online! Try Piet online! (x6) ...
Bubbler's user avatar
  • 76.8k
13 votes

I (rev)?(pal)? the source code, you (rev)?(pal)? the input!

Charcoal, 3 bytes θ⮌ω Try it online! Reversed: ω⮌θ Try it online! Palindromised: θ⮌ωω⮌θ ...
Neil's user avatar
  • 172k
13 votes

I (rev)?(pal)? the source code, you (rev)?(pal)? the input!

JavaScript, 70 bytes (x=>x.at?x:y=>y+z(y))//)y+)y(z>=y:``nioj.)(esrever.]x...[?ta.x>=x=z( Try it online!
tsh's user avatar
  • 34.9k
11 votes

Repeat your program to print Fibonacci numbers

Python, 34 bytes a='x';b='' print(end=a);a,b=b,a+b# Attempt This Online! Outputs in unary. How? Streamlined version of OP's example code
loopy walt's user avatar
  • 16.7k
11 votes

Repeat your program to print Fibonacci numbers

Thunno 2, 4 bytes (no header/footer) Ɓ+1| Try it online! 2x 3x Nx Explanation ...
The Thonnu's user avatar
  • 18.1k
10 votes

Repeat your program to print Fibonacci numbers

Itr, 5 4 bytes (no header or footer) â+1w online interpreter 2x 3x Nx (uses F operator to repeat sequence input number of times) ...
bsoelch's user avatar
  • 6,015
10 votes

Repeat your program to print Fibonacci numbers

T-SQL 171 160 159 bytes (no header or footer) -1 byte thanks to @MickyT ...
Katie Gardner's user avatar
10 votes

I (rev)?(pal)? the source code, you (rev)?(pal)? the input!

Python, 51 bytes -2 bytes, thanks to tsh -2 bytes, thanks to Jakque s=input()#)]1-::[s=dne(tnirp print(end=s)#)(tupni=s Attempt This Online! Python, 55 bytes <...
bsoelch's user avatar
  • 6,015
8 votes

Repeat your program to print Fibonacci numbers

Cascade, 6 bytes #| \? Try it online! (prints 0) Try it online!Try it online!Try it online! (prints ...
Bubbler's user avatar
  • 76.8k
8 votes

Repeat your program to print Fibonacci numbers

Piet + ascii-piet, 53 bytes (15×7=105 codels), no header/footer ttlddtN ub?fnNssSkKCVrTtTLcfkdtlElt?l??T lL sdD S?? Program as picture: Output in unary. Try ...
Aiden Chow's user avatar
  • 13.5k
8 votes

Repeat your program to print Fibonacci numbers

C (gcc), 84 bytes (no header/footer) t #ifndef A ,b;main(a){ #define At #define A printf("%d",a);} #endif t=a;a=a+b;b=t;A Try it online! This really ...
Consindine's user avatar
7 votes

Repeat your program to print Fibonacci numbers

05AB1E, 4 bytes (no header/footer) ¼¾Åf Try it online or verify the first ten iterations. Explanation: ...
Kevin Cruijssen's user avatar
7 votes

I (rev)?(pal)? the source code, you (rev)?(pal)? the input!

Vyxal, 3 bytes ₴Ḃ_ Try! !yrT Try!!yrT !yrTTry! +1 very hard You uh sure about that? Explained ...
lyxal's user avatar
  • 33.5k
7 votes

Magical BF: BF code that works in two ways

Task 2, Score: 9 ...
CursorCoercer's user avatar
6 votes

Repeat your program to print Fibonacci numbers

Ruby, 26 21 bytes [a=$.+$.=a||1];p *[a] Try it online! Thanks Value Ink, Jo King and Sisyphus for the improvements. In short When it's repeated, it will just ...
G B's user avatar
  • 22.1k
6 votes

Repeat your program to print Fibonacci numbers

Brain-Flak, 16 bytes (()[[]]({})<>{}) Try it online! ...
DJMcMayhem's user avatar
  • 59.3k
6 votes

Repeat your program to print Fibonacci numbers

Uiua, 89 36 25 19 bytes, no header/footer/tag :try(+,e)(1 0;) e= Try it online! Try it online!Try it online! Try it online!Try ...
Unrelated String's user avatar
6 votes

I (rev)?(pal)? the source code, you (rev)?(pal)? the input!

R, 92 88 86 bytes Edit: -2 bytes thanks to Jakque's comment x=utf8ToInt(scan(,''))#)))x(ver(8ftUoTtni(tac cat(intToUtf8(x))#))'',(nacs(tnIoT8ftu=x Attempt This ...
Dominic van Essen's user avatar
5 votes

Repeat your program to print Fibonacci numbers

JavaScript (Node.js), 38 bytes, 0 Header/Footer Creates a anonymous function (a=>a?b=>b?f=c=>c?c(f)(a):a()+b():1:1) Attempt This Online! Lambda Calculus ...
mousetail's user avatar
  • 12.7k
5 votes

Repeat your program to print Fibonacci numbers

Nekomata, 4 bytes (no header/footer) ˣ+1I Attempt This Online! Attempt This Online!×2 Attempt This Online!×3 Attempt This Online!×4 A port of @The Thonnu's ...
alephalpha's user avatar
  • 48.5k
5 votes

Repeat your program to print Fibonacci numbers

Vyxal, no headers, no footers, just 3 bytes !∆f Try it Online! or a test suite of the first 1 to 9 repetitions Hello to everyone who ports this in another stack ...
lyxal's user avatar
  • 33.5k
5 votes

Repeat your program to print Fibonacci numbers

Ruby, 29 23 bytes Dug around for a bit until I found this magical function called at_exit/END that could be used to ensure the ...
Value Ink's user avatar
  • 12.6k
5 votes

Repeat your program to print Fibonacci numbers

Python 3.8 (pre-release), 41 bytes, not unary solution for i in(1,a:=0): i,a=i+a,i or+print(a)# Try it online!
Jakque's user avatar
  • 2,668
5 votes

Magical BF: BF code that works in two ways

Task 1, score = 3 ><> [-< ->] Attempt This Online!
l4m2's user avatar
  • 24.5k
4 votes

Repeat your program to print Fibonacci numbers

Node.js, 36 bytes, no header/footer Returns the result in the exit code. The highest possible value depends on the operating system. I think that's 8-bit/unsigned on Linux and at least 32-bit/signed ...
Arnauld's user avatar
  • 193k
4 votes

Repeat your program to print Fibonacci numbers

Swift 5.8, no header/footer, 43 bytes var x=0,y=1;defer{print(x)} (x,y)=(y,x+y)// Port of Value Ink's Ruby answer. Try it on SwiftFiddle! Swift 5.6, no header/...
Bbrk24's user avatar
  • 2,873
4 votes

I reverse the source code, you reverse the input!

J 9, 4 bytes ][.| Attempt This Online! See this answer for the 7-byter that works in previous versions. J 9 (re-)introduces modifier trains and adds some adverb ...
Bubbler's user avatar
  • 76.8k
4 votes

Code close to the challenge: Sum of integers

Vyxal 3, distance 1 Given a set of integersṠ, find the sum of all integers in it. Try it Online! Prints a singleton number. Explanation ...
Fmbalbuena's user avatar
  • 3,867

Only top scored, non community-wiki answers of a minimum length are eligible