Quantcast
Channel: Tweetable hash function challenge - Code Golf Stack Exchange
Viewing latest article 21
Browse Latest Browse All 25

Answer by kasperd for Tweetable hash function challenge

$
0
0

Python, 6446 6372


This solution achieves lower collision count than all previous entries, and it needs only 44 of the 140 bytes allowed for code:

H=lambda s:int(s.encode('hex'),16)%16727401

Viewing latest article 21
Browse Latest Browse All 25

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>