New answers tagged

0 votes

Shortest code to produce non-deterministic output

Tamsin (Compiler), 16 bytes main=any@'\xf0'. Explanation ...
Mukundan314's user avatar
  • 8,194
1 vote

3D Hide & Seek Word Puzzle

JavaScript, 239 bytes ...
Matthew Jensen's user avatar
1 vote

Spot The Difference

Vyxal j, 169 bitsv2, 21.125 bytes ₈ÞB:₈ṁ⁽¬V"ƛ‛ @i;ṅ²÷Zƛ\|j Try it Online! Bitstring: ...
pacman256's user avatar
  • 3,310
1 vote

Spot The Difference

Assembly (nasm, x64, Linux), 378 bytes ...
vengy's user avatar
  • 1,613
2 votes

Spot The Difference

APL(Dyalog Unicode), 30 bytes SBCS Assume Index Origin is 0 (⎕IO←0) ' @|'[i,2,~@(⊂?⍴i)⊣i←?16 16⍴2] Try it on aplgolf ...
akamayu's user avatar
  • 61
1 vote

Spot The Difference

Windows Batch Scripting, 469 262 259 bytes Thanks to Neil's tips. ...
vengy's user avatar
  • 1,613
2 votes

Spot The Difference

Racket, 369 Bytes ...
Matthew Welmers's user avatar
1 vote

Spot The Difference

APL(Dyalog Unicode), 34 bytes SBCS Requires Index Origin 0 (⎕IO←0) ' @|'[A,2,A≠(⍴A←?16 16⍴2)⍴1=?⍨256] Try it on APLgolf! ...
Mukundan314's user avatar
  • 8,194
-1 votes

Spot The Difference

PYTHON ...
AnthonyCWX's user avatar
2 votes

Spot The Difference

R, 112 111 bytes ...
pajonk's user avatar
  • 15.6k
2 votes

Spot The Difference

05AB1E, 31 bytes ₁F„@ Ω}JÐ₅ÝΩ©è„@ ‡®ǝ‚16δôø'|ý» Try it online. Replaced the incorrect „@ ₁×.r₁£ with ...
Kevin Cruijssen's user avatar
5 votes

Spot The Difference

Google Sheets, 170 161 bytes Formula in \$A1\$ ...
z..'s user avatar
  • 321
5 votes

Spot The Difference

Python 3, 147 141 139 138 124 bytes -8 bytes thanks to Mukundan314. -14 bytes thanks to Jonathan Allan. ...
totallyhuman's user avatar
  • 16.7k
2 votes

Spot The Difference

Retina, 49 48 bytes 16*$(16*$( @)¶ (.){2} $?1 .+ $&|$& @T` @`@ ` |@ Try it online! Edit: Saved 1 byte thanks to @Leo. Explanation: ...
Neil's user avatar
  • 169k
1 vote

Spot The Difference

Charcoal, 30 bytes ↶≔¹⁶θEθ⭆θ‽ @C⊕θ⁰θJ‽θ±‽θ§ @⁼ KK Try it online! Link is to verbose version of code. Explanation: Change the ...
Neil's user avatar
  • 169k
3 votes

Spot The Difference

APL+WIN, 54 46 bytes Index origin = 0 '@ |'[(2|z+m⍴(?i)⌽i↑1),2,z←(m←2⍴16)⍴2|i?i←256] Try it online!Thanks to Dyalog Classic
Graham's user avatar
  • 5,866
2 votes

Spot The Difference

Google Sheets, 178 bytes ...
doubleunary's user avatar
  • 1,388
2 votes

Spot The Difference

Perl 5, 92 bytes @s=map{(@z=map{('@',$")[rand 2]}0..15),'|',@z,$/}0..15;$s[34*(0|rand 16)+rand 16]^='`';say@s Try it online!
Xcali's user avatar
  • 14.2k
2 votes

Spot The Difference

Uiua SBCS, 36 35 34 bytes ⊏⍉⊂⊂:↥2⊢.⍜⊡¬⌊×16⊟⚂⚂.⁅⊞⋅⋅⚂.⊚16"@ |" Try it! ...
chunes's user avatar
  • 23.4k
3 votes

Spot The Difference

JavaScript (V8), 107 bytes A full program. ...
Arnauld's user avatar
  • 191k
5 votes
Accepted

Spot The Difference

Jelly,  25  22 bytes ⁹ḶẊ⁾ @Ẋḷ\⁹¡¥Ɱs⁴Z€j€”|Y Try it online! How? ...
Jonathan Allan's user avatar
4 votes

Spot The Difference

J, 41 38 37 bytes ' @|'{~(?@$&2([,.2,.~:)?|.{.&1)@16 16 Try it online! -1 thanks to Mukundan314 ?|.{.&1 Create a ...
Jonah's user avatar
  • 33.3k
1 vote

Golf you an anagram for great good!

PowerShell Core, 72 bytes &($f={for(;$r-eq$o){$r=-join(($o="&(`$f={$f})")|% t*y|Random -c 72)}$r}) Try it online! This is a variation of the ...
Julian's user avatar
  • 2,818
3 votes

Golf you an anagram for great good!

Vyxal D, 14 bytes `q‛:Ė+:Ṗ$o℅`:Ė Try it Online! For a version that doesn't require ~1.2TB of RAM: Vyxal ...
emanresu A's user avatar
  • 37.1k
1 vote

Apartment Building

Befunge-93, 194 189 bytes -5 (me) small optimistions ...
Jachdich's user avatar
  • 359
1 vote

Alternating Random Series Sum To \$N\$

Pyth, 20 bytes s+V*"+-"QOf!u-HGTQ^S Try it online! Explanation ...
CursorCoercer's user avatar
2 votes
Accepted

Alternating Random Series Sum To \$N\$

Jelly, 15 bytes ṗḅ-⁼ɗƇ⁸XṚṭNƭ€”+ A full program that accepts a positive integer, \$n\$, and prints a possible alternating sum, in the given format, with \$n\$ terms ...
Jonathan Allan's user avatar
1 vote

Alternating Random Series Sum To \$N\$

Charcoal, 25 bytes NθW⁻↨⮌υ±¹θ≔Eθ⊕‽θυ⭆υ⁺§+-κι Try it online! Link is to verbose version of code. Explanation: Nθ Input ...
Neil's user avatar
  • 169k
1 vote

Alternating Random Series Sum To \$N\$

05AB1E, 19 bytes L¤ãε(2Å€Ä'+ì]ʒOQ}ΩJ Try it online or verify all possible results for a given input. ε(2Å€Ä'+ì] could ...
Kevin Cruijssen's user avatar
1 vote

Alternating Random Series Sum To \$N\$

Google Sheets, 154 bytes Assuming \$n\$ is in \$A1\$ ...
z..'s user avatar
  • 321
1 vote

Alternating Random Series Sum To \$N\$

Python 3.8 (pre-release), 120 bytes from random import* def f(n): while sum(L:=[s*randint(1,n)for s in(1,-1)*n][:n])-n:1 return''.join('%+d'%v for v in L) Try ...
enzo's user avatar
  • 1,941
1 vote

Alternating Random Series Sum To \$N\$

JavaScript (ES6), 74 bytes f=(n,i,s)=>i^n?f(n,-~i,[s]+"+-"[i&1]+-~(Math.random()*n)):eval(s)-n?f(n):s Try it online! Commented ...
Arnauld's user avatar
  • 191k
0 votes

Alternating Random Series Sum To \$N\$

C (gcc), 118 112 bytes -6 bytes, thanks to @Arnauld ...
vengy's user avatar
  • 1,613
2 votes

3D Hide & Seek Word Puzzle

Charcoal, 56 bytes W⁼⌊υ⌈υ«≔⁻E³‽⁺²Lθ²υ≔EθEυ⎇‹μ⁰⎇⊕μ⁻⊖Lθλλμυ»EθEθ⭆θ§⁺θ‽α⌕υ⟦κμξ Try it online! Link is to verbose version of code. Enter the word in lower case if you ...
Neil's user avatar
  • 169k
0 votes

3D Hide & Seek Word Puzzle

C (gcc), 655 542 446 437 bytes -105 bytes, thanks to @ceilingcat To disable the word hint, change w[i]|32 to w[i]|0. ...
vengy's user avatar
  • 1,613
3 votes
Accepted

3D Hide & Seek Word Puzzle

Python 3, 226 213 227 222 219 bytes ...
enzo's user avatar
  • 1,941
2 votes

Output a random unary string

Awk, 33 34 bytes END{for(srand();rand();)print"x"} Try it online! It is possible for awk's rand() to return 0, but ...
camelCasedSnivy's user avatar
1 vote

Output a random unary string

VBA, 20 bytes Anonymous immediate window function that outputs a sequence of newline literals of random length to the immediate window console. ...
Taylor Raine's user avatar
  • 8,320
0 votes

Output a random unary string

Yabasic, 22 bytes Function that outputs a sequence of newline literals of random length. While(ran()>.5):?:Wend Try it online!
Taylor Raine's user avatar
  • 8,320
0 votes

Output a random unary string

jot 19 | mawk 'NF+=int(rand()*19)' OFS=x ...
RARE Kpop Manifesto's user avatar
0 votes

Scramble words while preserving their outlines

Perl 5 -p, 104 bytes ...
Xcali's user avatar
  • 14.2k
1 vote

Scramble words while preserving their outlines

Python 3.8 (pre-release), 241 bytes Breaks, if words contain numbers (which is quite unlikely..) ...
movatica's user avatar
  • 1,025

Top 50 recent answers are included