Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

POSIX `hsearch` is absolutely terrible and almost useless, but... it would get the job done for this problem.


The advantages of foregoing hsearch is that I don't have to understand its weird API that works only for NUL-terminated string keys and that I don't require POSIX.

Remember that brute force is also a solution in the AoC; had plenty of fun using SBCL to crack some problems where Pythonistas had to be clever, last year =)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: