A college asked me for a hash function on strings that return an integer between 0 to N. Before diving in, I decided to take the lazy path and check if Python's hash function is good enough.
Luckily, ipython notebook --pylab=inline makes that a breeze.
Check out the notebook here.
And yes, we decided to stick with this solution. I guess we're at least 1/3 programmers.
If it won't be simple, it simply won't be. [Hire me, source code] by Miki Tebeka, CEO, 353Solutions
Wednesday, March 13, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment