mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): unclear instruction: Build a hash table (#63952)
This commit is contained in:
@@ -26,8 +26,8 @@ For the purpose of this lab, the hashing function will be simple: it will sum th
|
||||
|
||||
4. The `add` method should:
|
||||
- Take two arguments representing a key-value pair, and compute the hash of the key.
|
||||
- Use the computed hash value to store the key-value pair inside the `collection` dictionary.
|
||||
- If multiple keys produce the same hash value, their key-value pairs should be stored in a nested dictionary under the same hash value.
|
||||
- Use the computed hash value as a key to store a dictionary containing the key-value pair inside the `collection` dictionary.
|
||||
- If multiple keys produce the same hash value, their key-value pairs should be stored in the existing nested dictionary under the same hash value.
|
||||
|
||||
5. The `remove` method should:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user