Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which rule must a hash-map key implementation preserve?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/checkpoint-1/checkpoint-1-hash-contract/).
Context (verbatim from the page):
"""
Which rule must a hash-map key implementation preserve?
Keys considered equal must produce the same hash value.
Different keys must always produce different hash values.
The hash value alone decides whether two keys are equal.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in CS foundations. Where you are unsure, say so.