← Questions

Design a dictionary whose keys and values have mixed types

0
MicrosoftCodingLast asked Aug 2026

Design a key-value dictionary in which keys and values can be of different types and lengths. Explain how you hash and compare keys of different types, how collisions are handled, how variable-length data is stored and who owns that memory, and what the interface looks like.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding