leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

Bug Report for python-hash-map-basics

Open VedantKh opened this issue 2 months ago • 0 comments

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'

VedantKh avatar Oct 21 '25 20:10 VedantKh