Skip to main content
100%

Gist 846581

✓ Published0🌍 Public
XXXX
Last edited Feb 27, 2011
Created on Feb 27, 2011

This example visualizes the inverse of Java’s string hash function, showing how a given integer hash code can be reversed into a string. It uses a custom C implementation, including `java_hash_code` and `java_unhash_code`, to compute and invert hashes, with the recursive `unhash2` function building the string character by character. The code also includes a known collision case, where the hash of “polygenelubricants” maps to `INT_MIN`. The visualization is static, relying on the C logic and standard libraries like `string.h` and `limits.h` rather than any rendering framework.

AI-generated description

Similar vizzes