Skip to main content
32 votes

aaabbabbc⠀⠀⠀⠀⠀⠀

Python,  55  51 bytes lambda a:'%x'%(-int(a.replace('c','0c'),16)%255-39) Attempt This Online! Explain: Observe that 'a', 'b', 'c' are base 16 digits. I learnt ...
Phan Trọng Nhân's user avatar
26 votes

What's my type? Well... Probably

Jelly, 181 bytes, accuracy 148/150, score ≈ 185.925 ...
22 votes

What's my type? Well... Probably

PHP, 5 bytes, score = 347.222 Correctly guesses 18 Pokemon. Water Try it online!
dingledooper's user avatar
  • 22.7k
18 votes

aaabbabbc⠀⠀⠀⠀⠀⠀

JavaScript (ES6), 59 bytes s=>(s+"aaabbabbc").replace(q=/c|../g,s=>(q[s]^=1)?o=s:0)&&o Try it online! Commented ...
Arnauld's user avatar
  • 193k
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

aaabbabbc⠀⠀⠀⠀⠀⠀

Stax, 11 bytes ù¢╓┘0ï<ΣEZ1 Run and debug it Unpacked (13 bytes): 'c|^2/M{{SkmT Explanations: ...
jimmy23013's user avatar
14 votes

Print a meter of numbers to a specified limit

Canvas, 4 bytes R↶ * Try it online. Explanation: ...
Kevin Cruijssen's user avatar
13 votes

What's my type? Well... Probably

Node.js, score = 579 (579 bytes, 100%) This is at the other end of the spectrum, as opposed to @dingledooper's answer, as it gives the correct answer for all inputs. ...
Arnauld's user avatar
  • 193k
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
13 votes

Compute the degree of a string

JavaScript (ES6), 38 bytes Straightforward formula Expects an array of ASCII codes. a=>a.map(t=c=>t=-~t-(a+4-[a=c])%3)|t/3 Try it online! JavaScript (ES6), ...
Arnauld's user avatar
  • 193k
12 votes

Meta-cat program

brainfuck, 78 + 2109 = 2187 bytes ...
guest's user avatar
  • 121
12 votes

What's my type? Well... Probably

jAvAscRIpt, 273 characters, score = 322.5425 This answer includes insincere rules-lawyering, but it doesn't seem to literally abuse a standard loophole. It might count as "adding input or rules&...
jan's user avatar
  • 351
12 votes

Strings without twin letters

Husk, 4 bytes fΛ≠π Try it online! Short and straightforward solution, the MVP here is Λ, thanks to its overload that can take a ...
Leo's user avatar
  • 12.7k
11 votes

Two Parallel Linked Chains

Regex, 36 32 30 29 bytes ^(?=.*=)(_|(^|\b=)-+(=_|$))*$ Try it online! -1 thanks to @InSync which allowed for another -1 This is my first regex answer, so it's ...
Command Master's user avatar
11 votes

aaabbabbc⠀⠀⠀⠀⠀⠀

Jelly, 15 14 bytes ḟ”cQp`ḟs2$Ʋȯ”c Try it online! Thanks to @JonathanAllan for saving a byte! A full program taking a string as its argument and printing the ...
Nick Kennedy's user avatar
  • 21.1k
11 votes

Enumerate all matches of a regex

Python, 214 bytes ...
Bubbler's user avatar
  • 77.1k
10 votes

Two Parallel Linked Chains

Jelly, 12 bytes f⁾-_Œgj”=⁼>E Try it online! ...
Unrelated String's user avatar
10 votes

Two Parallel Linked Chains

JavaScript (ES6), 70 bytes This code is using an explicit finite-state machine rather than regular expression functions. Expects a list of characters and returns 0 or 1. ...
Arnauld's user avatar
  • 193k
10 votes

Can you perform swaps?

Rust, 204 179 147 132 123 98 90 80 bytes |a,b|a.iter().zip(b).fold([0;3],|[c,d,f],(&e,g)|[c+e+g,d^e^g,f.min(c+d)])==[0;3] Attempt This Online! -9 bytes thanks ...
mousetail's user avatar
  • 12.7k
10 votes

When in {country}, do as the {countrians} do

Lexurgy, 72 65 bytes y: {y,*}=>i/!{a,e,i,o,u,y} _ $ a: {e,a}=>ans/_ $ Else: *=>ans/_ $ Expects input as just the country name, and outputs the plural ...
bigyihsuan's user avatar
  • 9,796
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,035
10 votes

aaabbabbc⠀⠀⠀⠀⠀⠀

Python, 55 bytes lambda a:f'{int("cc"+(30*a).strip("ab"),16)%255%192:x}' Attempt This Online! This produces 15 (= base - 1) on frame and (if <...
Albert.Lang's user avatar
  • 2,894
10 votes

Swap letter cases

MATL, 2 bytes Yo Try it at MATL online!
Luis Mendo's user avatar
  • 105k
9 votes

s-n-a-k-e-a-r-o-u-n-d--->

K (ngn/k), 337 331 315 290 279 231 224 211 213 bytes ...
doug's user avatar
  • 1,370
9 votes

Just another traffic jam!

Jelly, 3 bytes ŒgZ A full program that accepts a pair of the two strings as the first argument and prints the resulting single lane. Try it online! How? ...
Jonathan Allan's user avatar
9 votes

Doubleouble Talkalk

JavaScript (ES6), 21 bytes Takes a string and returns a Boolean value. s=>/.(.+)\1$/.test(s) Try it online! JavaScript (ES6), 59 bytes A non-regex solution. <...
Arnauld's user avatar
  • 193k
9 votes

Map key with value as standard

Python 3, 52 bytes lambda x:dict(i.split(')')for i in x[1:].split('(')) Try it online!
Mukundan314's user avatar
  • 12.3k
9 votes

Compute the degree of a string

Cubical Agda, 1134 bytes Uses Agda 2.6.4.3, the cubical library 0.7 and the standard library 2.0. ...
Naïm Favier's user avatar
9 votes

Decode a Caesar ciphertext with high probability

Charcoal, 31 bytes, 93.66%, score 33.1 ≔EβΣEθ∧№βλ№etaonis§β⁻⌕βλκηI⌕η⌈η Attempt This Online! Link is to verbose version of code. Outputs the shift ...
Neil's user avatar
  • 172k

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