Joyal Mathew
  • Member for 7 months
  • Last seen this week
Can you give me half? (No digits)
22 votes

Python 3, 117 bytes Try it online! (lambda n:round(sum(__import__('random').random()for _ in range(n))/n,ord('B')-ord('A')))(ord('~')*ord('~')*ord('~')) This takes the average of a bunch of random ...

View answer
Write a C++ demangler
13 votes

Python 3, 460 417 362 355 bytes Try it online! -43 bytes thanks to @Easyaspi -55 bytes thanks to @ovs -7 bytes thanks to @Arnauld import re m=input()[2:] o="" def a(): global m,o if"I&...

View answer
Snap (card game)
6 votes

JavaScript (Node.js), 483 426 bytes -57 bytes thanks to @emanresu A Takes a list of strings as input and indexes from 0. Try it online! a=>{a=a.map(p=>[...p]);e=[];t=[];o=[];i=0;g=a.length;m=n=&...

View answer
Will the Hydra finally die?
3 votes

Python 3, 56 bytes Try it online! lambda h,a,g,t:h+sum(z*(x-y)for x,y,z in zip(g,a,t))in a

View answer