String Hashing

A challenge by mousetail avatar mousetail

Description

Given a list of strings, one on each line, output a positive 31-bit integer for each one. Each word in words.txt should get a unique hash, and the hash should stay consistent for the same word, even between runs.

Integers outputted should be at most 2^31-1.

Leaderboard

Author Points
#1 Mukundan314 avatar Mukundan314 69
#2 KasperKivimaeki avatar KasperKivimaeki 70