Tag Info

Logic Gates Manually

Python 2, 38 bytes lambda s:sum(map(ord,s))*3%61%37%9%7%2 Try it online! A good ol' modulo chain applied to the sum of ASCII values of the input string, making ...
• 145k

26 Singers, 26 Letters

Python 2, 80 71 bytes def f(s):i=sum(map(ord,s))%98%40;return chr(i-i/26*18+i/32*3-i/37*8+65) Try it online! The sums of ordinals modded give numbers between <...
• 19.8k

26 Singers, 26 Letters

6502 machine code routine (C64), 83 bytes ...
• 4,266

Output with the same length always

JavaScript (ES8), 33 bytes Expects the input in the range of safe JS integers: $-2^{53}\le n < 2^{53}$. Returns a string of 76 characters. ...
• 193k

26 Singers, 26 Letters

Python 2, 68 bytes def f(n):i=hash(n)%337%125%45;return chr(65+i-i/25*2-i/29*21+i/35*2) Try it online!
• 59.5k

Compute CRC32 Hash

Intel x86, 34 30 29 27 bytes Takes the address of the zero-terminated string in ESI, and returns the CRC in EBX: ...
• 789

Output with the same length always

Python 3, 49 39 bytes lambda i:[chr(ord(x)*2)for x in"%9x"%i] Try it online! -10 bytes thanks to negative seven Converts the integer to hexadecimal, and ...
• 14k

Help me recognise my monster

JavaScript (ES6), 915 ... 902 890 bytes ...
• 193k

26 Singers, 26 Letters

Javascript, 138 132 characters As all initials are unique, except for MJ = Michael Jackson / Mick Jagger, I check for Michael Jackson specifically (the only one ...
• 326

Logic Gates Manually

JavaScript (ES6), 39 bytes s=>341139>>parseInt(btoa(s),34)%86%23&1 Try it online! How? We can't parse spaces with ...
• 193k

Implement SHA-256

Python 2, 519 bytes ...
• 61.9k

• 12.4k

26 Singers, 26 Letters

Java (OpenJDK 8), 128 126 115 113 bytes Not too shabby for a java submission! Thanks to Kevin for saving me a whole lot of bytes with the lambda expressions! ...
• 1,007

Arbitrary Length Hashing

Haskell, 91 90 86 bytes -1 byte thanks to Laikoni -4 bytes thanks to xnor ...
• 6,266

Arbitrary Length Hashing

R, 159 154 bytes ...
• 28.6k

Rotation invariant fingerprinting

Python 2, 48 bytes f=lambda l,z=5:z and max(l,f(zip(*l)[::-1],z-1)) Try it online! Takes the largest of the four rotations in terms of list comparison. Based on ...
• 145k

bash + GNU utilities, score 294506 283468 Edit 1: Fixes a problem that @Leo noticed -- thank you! Edit 2: Improved the encoding method for the radiation parameter, for a better score. Encoder (97 ...
• 7,913

Help me recognise my monster

Jelly, 228 bytes in Jelly's encoding ...

26 Singers, 26 Letters

Python 3, 132 99 96 bytes lambda m:chr(98+"ԇ̲ЙГ̫ѼӿИԸՋжʾҍϴЬֺΝעЕΞϾҞ֜ӣ֪".find(chr(sum(map(ord,m))))) Try it online! Not golfed brilliantly, but I thought I'd give ...
• 3,673

Logic Gates Manually

CJam (13 bytes) q1bH%86825Yb= Assumes that input is without a trailing newline. Online test suite This is just a simple hash which maps the 24 possible inputs ...
• 43.1k