leetcode
leetcode copied to clipboard
Bug Report for python-hash-map-basics
Bug Report for https://neetcode.io/problems/python-hash-map-basics
Minor error in the description
my_dict = {'a': 1, 'b': 2}
del my_dict['a'] # {} ← this should be # {'b': 2}
my_dict.pop('b') # {}
my_dict.pop('c') # KeyError: 'c'
my_dict.pop('c', 'default') # No error, returns 'default'