Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which standard collection most directly expresses a key-value map that must iterate by key and answer key-range queries?" on CodeWiki (https://codewiki.com/practice/mcq/rust/collections/choose-ordered-range-map/).
Context (verbatim from the page):
"""
Which standard collection most directly expresses a key-value map that must iterate by key and answer key-range queries?
BTreeMap<K, V>
HashMap<K, V>
VecDeque<(K, V)>
HashSet<(K, V)>
"""
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 Rust. Where you are unsure, say so.