[{"data":1,"prerenderedAt":1694},["ShallowReactive",2],{"content-all-\u002Fdata-structure-algorithm\u002Fhash-map":3,"related-\u002Fdata-structure-algorithm\u002Fhash-map":1554,"sidebar-content":1668},[4],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"tags":11,"date":14,"weight":15,"body":16,"_type":1548,"_id":1549,"_source":1550,"_file":1551,"_stem":1552,"_extension":1553},"\u002Fdata-structure-algorithm\u002Fhash-map","data-structure-algorithm",false,"","Hash Map","Hash map implementation in Python for competitive programming.",[12,13],"python","backend","2026-04-10",10,{"type":17,"children":18,"toc":1535},"root",[19,28,43,50,221,227,385,391,546,552,745,751,1144,1150,1221,1227,1268,1274,1313,1319,1524,1529],{"type":20,"tag":21,"props":22,"children":24},"element","h2",{"id":23},"hash-map-in-python",[25],{"type":26,"value":27},"text","Hash Map in Python",{"type":20,"tag":29,"props":30,"children":31},"p",{},[32,34,41],{"type":26,"value":33},"In Python, a hash map is implemented using the built-in ",{"type":20,"tag":35,"props":36,"children":38},"code",{"className":37},[],[39],{"type":26,"value":40},"dict",{"type":26,"value":42}," data structure. A hash map (or dictionary) allows you to store key-value pairs and provides efficient lookup, insertion, and deletion operations. Here are some examples of how to use a hash map in Python:",{"type":20,"tag":44,"props":45,"children":47},"h3",{"id":46},"creating-a-hash-map",[48],{"type":26,"value":49},"Creating a Hash Map",{"type":20,"tag":51,"props":52,"children":55},"pre",{"className":53,"code":54,"language":12,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Creating an empty hash map\nmy_hash_map = {}\n\n# Creating a hash map with some key-value pairs\nmy_hash_map = {\n    'key1': 'value1',\n    'key2': 'value2',\n    'key3': 'value3'\n}\nprint(my_hash_map)  # Output: {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'}\n",[56],{"type":20,"tag":35,"props":57,"children":58},{"__ignoreMap":8},[59,71,92,102,111,128,153,175,193,202],{"type":20,"tag":60,"props":61,"children":64},"span",{"class":62,"line":63},"line",1,[65],{"type":20,"tag":60,"props":66,"children":68},{"style":67},"--shiki-default:#6A737D;--shiki-dark:#6A737D",[69],{"type":26,"value":70},"# Creating an empty hash map\n",{"type":20,"tag":60,"props":72,"children":74},{"class":62,"line":73},2,[75,81,87],{"type":20,"tag":60,"props":76,"children":78},{"style":77},"--shiki-default:#24292E;--shiki-dark:#E1E4E8",[79],{"type":26,"value":80},"my_hash_map ",{"type":20,"tag":60,"props":82,"children":84},{"style":83},"--shiki-default:#D73A49;--shiki-dark:#F97583",[85],{"type":26,"value":86},"=",{"type":20,"tag":60,"props":88,"children":89},{"style":77},[90],{"type":26,"value":91}," {}\n",{"type":20,"tag":60,"props":93,"children":95},{"class":62,"line":94},3,[96],{"type":20,"tag":60,"props":97,"children":99},{"emptyLinePlaceholder":98},true,[100],{"type":26,"value":101},"\n",{"type":20,"tag":60,"props":103,"children":105},{"class":62,"line":104},4,[106],{"type":20,"tag":60,"props":107,"children":108},{"style":67},[109],{"type":26,"value":110},"# Creating a hash map with some key-value pairs\n",{"type":20,"tag":60,"props":112,"children":114},{"class":62,"line":113},5,[115,119,123],{"type":20,"tag":60,"props":116,"children":117},{"style":77},[118],{"type":26,"value":80},{"type":20,"tag":60,"props":120,"children":121},{"style":83},[122],{"type":26,"value":86},{"type":20,"tag":60,"props":124,"children":125},{"style":77},[126],{"type":26,"value":127}," {\n",{"type":20,"tag":60,"props":129,"children":131},{"class":62,"line":130},6,[132,138,143,148],{"type":20,"tag":60,"props":133,"children":135},{"style":134},"--shiki-default:#032F62;--shiki-dark:#9ECBFF",[136],{"type":26,"value":137},"    'key1'",{"type":20,"tag":60,"props":139,"children":140},{"style":77},[141],{"type":26,"value":142},": ",{"type":20,"tag":60,"props":144,"children":145},{"style":134},[146],{"type":26,"value":147},"'value1'",{"type":20,"tag":60,"props":149,"children":150},{"style":77},[151],{"type":26,"value":152},",\n",{"type":20,"tag":60,"props":154,"children":156},{"class":62,"line":155},7,[157,162,166,171],{"type":20,"tag":60,"props":158,"children":159},{"style":134},[160],{"type":26,"value":161},"    'key2'",{"type":20,"tag":60,"props":163,"children":164},{"style":77},[165],{"type":26,"value":142},{"type":20,"tag":60,"props":167,"children":168},{"style":134},[169],{"type":26,"value":170},"'value2'",{"type":20,"tag":60,"props":172,"children":173},{"style":77},[174],{"type":26,"value":152},{"type":20,"tag":60,"props":176,"children":178},{"class":62,"line":177},8,[179,184,188],{"type":20,"tag":60,"props":180,"children":181},{"style":134},[182],{"type":26,"value":183},"    'key3'",{"type":20,"tag":60,"props":185,"children":186},{"style":77},[187],{"type":26,"value":142},{"type":20,"tag":60,"props":189,"children":190},{"style":134},[191],{"type":26,"value":192},"'value3'\n",{"type":20,"tag":60,"props":194,"children":196},{"class":62,"line":195},9,[197],{"type":20,"tag":60,"props":198,"children":199},{"style":77},[200],{"type":26,"value":201},"}\n",{"type":20,"tag":60,"props":203,"children":204},{"class":62,"line":15},[205,211,216],{"type":20,"tag":60,"props":206,"children":208},{"style":207},"--shiki-default:#005CC5;--shiki-dark:#79B8FF",[209],{"type":26,"value":210},"print",{"type":20,"tag":60,"props":212,"children":213},{"style":77},[214],{"type":26,"value":215},"(my_hash_map)  ",{"type":20,"tag":60,"props":217,"children":218},{"style":67},[219],{"type":26,"value":220},"# Output: {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'}\n",{"type":20,"tag":44,"props":222,"children":224},{"id":223},"accessing-values",[225],{"type":26,"value":226},"Accessing Values",{"type":20,"tag":51,"props":228,"children":230},{"className":53,"code":229,"language":12,"meta":8,"style":8},"# Accessing values using keys\nprint(my_hash_map['key1'])  # Output: value1\nprint(my_hash_map.get('key2'))  # Output: value2\n\n# Accessing a non-existent key returns None\nprint(my_hash_map.get('key4'))  # Output: None\n\n# Accessing a non-existent key with a default value\nprint(my_hash_map.get('key4', 'default'))  # Output: default\n",[231],{"type":20,"tag":35,"props":232,"children":233},{"__ignoreMap":8},[234,242,269,296,303,311,336,343,351],{"type":20,"tag":60,"props":235,"children":236},{"class":62,"line":63},[237],{"type":20,"tag":60,"props":238,"children":239},{"style":67},[240],{"type":26,"value":241},"# Accessing values using keys\n",{"type":20,"tag":60,"props":243,"children":244},{"class":62,"line":73},[245,249,254,259,264],{"type":20,"tag":60,"props":246,"children":247},{"style":207},[248],{"type":26,"value":210},{"type":20,"tag":60,"props":250,"children":251},{"style":77},[252],{"type":26,"value":253},"(my_hash_map[",{"type":20,"tag":60,"props":255,"children":256},{"style":134},[257],{"type":26,"value":258},"'key1'",{"type":20,"tag":60,"props":260,"children":261},{"style":77},[262],{"type":26,"value":263},"])  ",{"type":20,"tag":60,"props":265,"children":266},{"style":67},[267],{"type":26,"value":268},"# Output: value1\n",{"type":20,"tag":60,"props":270,"children":271},{"class":62,"line":94},[272,276,281,286,291],{"type":20,"tag":60,"props":273,"children":274},{"style":207},[275],{"type":26,"value":210},{"type":20,"tag":60,"props":277,"children":278},{"style":77},[279],{"type":26,"value":280},"(my_hash_map.get(",{"type":20,"tag":60,"props":282,"children":283},{"style":134},[284],{"type":26,"value":285},"'key2'",{"type":20,"tag":60,"props":287,"children":288},{"style":77},[289],{"type":26,"value":290},"))  ",{"type":20,"tag":60,"props":292,"children":293},{"style":67},[294],{"type":26,"value":295},"# Output: value2\n",{"type":20,"tag":60,"props":297,"children":298},{"class":62,"line":104},[299],{"type":20,"tag":60,"props":300,"children":301},{"emptyLinePlaceholder":98},[302],{"type":26,"value":101},{"type":20,"tag":60,"props":304,"children":305},{"class":62,"line":113},[306],{"type":20,"tag":60,"props":307,"children":308},{"style":67},[309],{"type":26,"value":310},"# Accessing a non-existent key returns None\n",{"type":20,"tag":60,"props":312,"children":313},{"class":62,"line":130},[314,318,322,327,331],{"type":20,"tag":60,"props":315,"children":316},{"style":207},[317],{"type":26,"value":210},{"type":20,"tag":60,"props":319,"children":320},{"style":77},[321],{"type":26,"value":280},{"type":20,"tag":60,"props":323,"children":324},{"style":134},[325],{"type":26,"value":326},"'key4'",{"type":20,"tag":60,"props":328,"children":329},{"style":77},[330],{"type":26,"value":290},{"type":20,"tag":60,"props":332,"children":333},{"style":67},[334],{"type":26,"value":335},"# Output: None\n",{"type":20,"tag":60,"props":337,"children":338},{"class":62,"line":155},[339],{"type":20,"tag":60,"props":340,"children":341},{"emptyLinePlaceholder":98},[342],{"type":26,"value":101},{"type":20,"tag":60,"props":344,"children":345},{"class":62,"line":177},[346],{"type":20,"tag":60,"props":347,"children":348},{"style":67},[349],{"type":26,"value":350},"# Accessing a non-existent key with a default value\n",{"type":20,"tag":60,"props":352,"children":353},{"class":62,"line":195},[354,358,362,366,371,376,380],{"type":20,"tag":60,"props":355,"children":356},{"style":207},[357],{"type":26,"value":210},{"type":20,"tag":60,"props":359,"children":360},{"style":77},[361],{"type":26,"value":280},{"type":20,"tag":60,"props":363,"children":364},{"style":134},[365],{"type":26,"value":326},{"type":20,"tag":60,"props":367,"children":368},{"style":77},[369],{"type":26,"value":370},", ",{"type":20,"tag":60,"props":372,"children":373},{"style":134},[374],{"type":26,"value":375},"'default'",{"type":20,"tag":60,"props":377,"children":378},{"style":77},[379],{"type":26,"value":290},{"type":20,"tag":60,"props":381,"children":382},{"style":67},[383],{"type":26,"value":384},"# Output: default\n",{"type":20,"tag":44,"props":386,"children":388},{"id":387},"inserting-and-updating-values",[389],{"type":26,"value":390},"Inserting and Updating Values",{"type":20,"tag":51,"props":392,"children":394},{"className":53,"code":393,"language":12,"meta":8,"style":8},"# Existing hash map\nprint(my_hash_map)\n# Output: {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'}\n\n# Inserting a new key-value pair\nmy_hash_map['key4'] = 'value4'\nprint(my_hash_map)\n# Output: {'key1': 'value1', 'key2': 'value2', 'key3': 'value3', 'key4': 'value4'}\n\n# Updating an existing key-value pair\nmy_hash_map['key2'] = 'new_value2'\nprint(my_hash_map)\n# Output: {'key1': 'value1', 'key2': 'new_value2', 'key3': 'value3', 'key4': 'value4'}\n",[395],{"type":20,"tag":35,"props":396,"children":397},{"__ignoreMap":8},[398,406,418,425,432,440,466,477,485,492,500,525,537],{"type":20,"tag":60,"props":399,"children":400},{"class":62,"line":63},[401],{"type":20,"tag":60,"props":402,"children":403},{"style":67},[404],{"type":26,"value":405},"# Existing hash map\n",{"type":20,"tag":60,"props":407,"children":408},{"class":62,"line":73},[409,413],{"type":20,"tag":60,"props":410,"children":411},{"style":207},[412],{"type":26,"value":210},{"type":20,"tag":60,"props":414,"children":415},{"style":77},[416],{"type":26,"value":417},"(my_hash_map)\n",{"type":20,"tag":60,"props":419,"children":420},{"class":62,"line":94},[421],{"type":20,"tag":60,"props":422,"children":423},{"style":67},[424],{"type":26,"value":220},{"type":20,"tag":60,"props":426,"children":427},{"class":62,"line":104},[428],{"type":20,"tag":60,"props":429,"children":430},{"emptyLinePlaceholder":98},[431],{"type":26,"value":101},{"type":20,"tag":60,"props":433,"children":434},{"class":62,"line":113},[435],{"type":20,"tag":60,"props":436,"children":437},{"style":67},[438],{"type":26,"value":439},"# Inserting a new key-value pair\n",{"type":20,"tag":60,"props":441,"children":442},{"class":62,"line":130},[443,448,452,457,461],{"type":20,"tag":60,"props":444,"children":445},{"style":77},[446],{"type":26,"value":447},"my_hash_map[",{"type":20,"tag":60,"props":449,"children":450},{"style":134},[451],{"type":26,"value":326},{"type":20,"tag":60,"props":453,"children":454},{"style":77},[455],{"type":26,"value":456},"] ",{"type":20,"tag":60,"props":458,"children":459},{"style":83},[460],{"type":26,"value":86},{"type":20,"tag":60,"props":462,"children":463},{"style":134},[464],{"type":26,"value":465}," 'value4'\n",{"type":20,"tag":60,"props":467,"children":468},{"class":62,"line":155},[469,473],{"type":20,"tag":60,"props":470,"children":471},{"style":207},[472],{"type":26,"value":210},{"type":20,"tag":60,"props":474,"children":475},{"style":77},[476],{"type":26,"value":417},{"type":20,"tag":60,"props":478,"children":479},{"class":62,"line":177},[480],{"type":20,"tag":60,"props":481,"children":482},{"style":67},[483],{"type":26,"value":484},"# Output: {'key1': 'value1', 'key2': 'value2', 'key3': 'value3', 'key4': 'value4'}\n",{"type":20,"tag":60,"props":486,"children":487},{"class":62,"line":195},[488],{"type":20,"tag":60,"props":489,"children":490},{"emptyLinePlaceholder":98},[491],{"type":26,"value":101},{"type":20,"tag":60,"props":493,"children":494},{"class":62,"line":15},[495],{"type":20,"tag":60,"props":496,"children":497},{"style":67},[498],{"type":26,"value":499},"# Updating an existing key-value pair\n",{"type":20,"tag":60,"props":501,"children":503},{"class":62,"line":502},11,[504,508,512,516,520],{"type":20,"tag":60,"props":505,"children":506},{"style":77},[507],{"type":26,"value":447},{"type":20,"tag":60,"props":509,"children":510},{"style":134},[511],{"type":26,"value":285},{"type":20,"tag":60,"props":513,"children":514},{"style":77},[515],{"type":26,"value":456},{"type":20,"tag":60,"props":517,"children":518},{"style":83},[519],{"type":26,"value":86},{"type":20,"tag":60,"props":521,"children":522},{"style":134},[523],{"type":26,"value":524}," 'new_value2'\n",{"type":20,"tag":60,"props":526,"children":528},{"class":62,"line":527},12,[529,533],{"type":20,"tag":60,"props":530,"children":531},{"style":207},[532],{"type":26,"value":210},{"type":20,"tag":60,"props":534,"children":535},{"style":77},[536],{"type":26,"value":417},{"type":20,"tag":60,"props":538,"children":540},{"class":62,"line":539},13,[541],{"type":20,"tag":60,"props":542,"children":543},{"style":67},[544],{"type":26,"value":545},"# Output: {'key1': 'value1', 'key2': 'new_value2', 'key3': 'value3', 'key4': 'value4'}\n",{"type":20,"tag":44,"props":547,"children":549},{"id":548},"deleting-key-value-pairs",[550],{"type":26,"value":551},"Deleting Key-Value Pairs",{"type":20,"tag":51,"props":553,"children":555},{"className":53,"code":554,"language":12,"meta":8,"style":8},"# Deleting a key-value pair using delete\ndel my_hash_map['key3']\nprint(my_hash_map)  # Output: {'key1': 'value1', 'key2': 'new_value2', 'key4': 'value4'}\n\n# Deleting a key-value pair using pop \u002F\u002F pop returns the value of the removed key\nremoved_value = my_hash_map.pop('key2')\nprint(removed_value)  # Output: new_value2\nprint(my_hash_map)  # Output: {'key1': 'value1', 'key4': 'value4'}\n\n# Pop the last inserted key-value pair\nlast_removed_value = my_hash_map.popitem()\nprint(last_removed_value)  # Output: ('key4', 'value4')\nprint(my_hash_map)  # Output: {'key1': 'value1'}\n",[556],{"type":20,"tag":35,"props":557,"children":558},{"__ignoreMap":8},[559,567,590,606,613,621,647,664,680,687,695,712,729],{"type":20,"tag":60,"props":560,"children":561},{"class":62,"line":63},[562],{"type":20,"tag":60,"props":563,"children":564},{"style":67},[565],{"type":26,"value":566},"# Deleting a key-value pair using delete\n",{"type":20,"tag":60,"props":568,"children":569},{"class":62,"line":73},[570,575,580,585],{"type":20,"tag":60,"props":571,"children":572},{"style":83},[573],{"type":26,"value":574},"del",{"type":20,"tag":60,"props":576,"children":577},{"style":77},[578],{"type":26,"value":579}," my_hash_map[",{"type":20,"tag":60,"props":581,"children":582},{"style":134},[583],{"type":26,"value":584},"'key3'",{"type":20,"tag":60,"props":586,"children":587},{"style":77},[588],{"type":26,"value":589},"]\n",{"type":20,"tag":60,"props":591,"children":592},{"class":62,"line":94},[593,597,601],{"type":20,"tag":60,"props":594,"children":595},{"style":207},[596],{"type":26,"value":210},{"type":20,"tag":60,"props":598,"children":599},{"style":77},[600],{"type":26,"value":215},{"type":20,"tag":60,"props":602,"children":603},{"style":67},[604],{"type":26,"value":605},"# Output: {'key1': 'value1', 'key2': 'new_value2', 'key4': 'value4'}\n",{"type":20,"tag":60,"props":607,"children":608},{"class":62,"line":104},[609],{"type":20,"tag":60,"props":610,"children":611},{"emptyLinePlaceholder":98},[612],{"type":26,"value":101},{"type":20,"tag":60,"props":614,"children":615},{"class":62,"line":113},[616],{"type":20,"tag":60,"props":617,"children":618},{"style":67},[619],{"type":26,"value":620},"# Deleting a key-value pair using pop \u002F\u002F pop returns the value of the removed key\n",{"type":20,"tag":60,"props":622,"children":623},{"class":62,"line":130},[624,629,633,638,642],{"type":20,"tag":60,"props":625,"children":626},{"style":77},[627],{"type":26,"value":628},"removed_value ",{"type":20,"tag":60,"props":630,"children":631},{"style":83},[632],{"type":26,"value":86},{"type":20,"tag":60,"props":634,"children":635},{"style":77},[636],{"type":26,"value":637}," my_hash_map.pop(",{"type":20,"tag":60,"props":639,"children":640},{"style":134},[641],{"type":26,"value":285},{"type":20,"tag":60,"props":643,"children":644},{"style":77},[645],{"type":26,"value":646},")\n",{"type":20,"tag":60,"props":648,"children":649},{"class":62,"line":155},[650,654,659],{"type":20,"tag":60,"props":651,"children":652},{"style":207},[653],{"type":26,"value":210},{"type":20,"tag":60,"props":655,"children":656},{"style":77},[657],{"type":26,"value":658},"(removed_value)  ",{"type":20,"tag":60,"props":660,"children":661},{"style":67},[662],{"type":26,"value":663},"# Output: new_value2\n",{"type":20,"tag":60,"props":665,"children":666},{"class":62,"line":177},[667,671,675],{"type":20,"tag":60,"props":668,"children":669},{"style":207},[670],{"type":26,"value":210},{"type":20,"tag":60,"props":672,"children":673},{"style":77},[674],{"type":26,"value":215},{"type":20,"tag":60,"props":676,"children":677},{"style":67},[678],{"type":26,"value":679},"# Output: {'key1': 'value1', 'key4': 'value4'}\n",{"type":20,"tag":60,"props":681,"children":682},{"class":62,"line":195},[683],{"type":20,"tag":60,"props":684,"children":685},{"emptyLinePlaceholder":98},[686],{"type":26,"value":101},{"type":20,"tag":60,"props":688,"children":689},{"class":62,"line":15},[690],{"type":20,"tag":60,"props":691,"children":692},{"style":67},[693],{"type":26,"value":694},"# Pop the last inserted key-value pair\n",{"type":20,"tag":60,"props":696,"children":697},{"class":62,"line":502},[698,703,707],{"type":20,"tag":60,"props":699,"children":700},{"style":77},[701],{"type":26,"value":702},"last_removed_value ",{"type":20,"tag":60,"props":704,"children":705},{"style":83},[706],{"type":26,"value":86},{"type":20,"tag":60,"props":708,"children":709},{"style":77},[710],{"type":26,"value":711}," my_hash_map.popitem()\n",{"type":20,"tag":60,"props":713,"children":714},{"class":62,"line":527},[715,719,724],{"type":20,"tag":60,"props":716,"children":717},{"style":207},[718],{"type":26,"value":210},{"type":20,"tag":60,"props":720,"children":721},{"style":77},[722],{"type":26,"value":723},"(last_removed_value)  ",{"type":20,"tag":60,"props":725,"children":726},{"style":67},[727],{"type":26,"value":728},"# Output: ('key4', 'value4')\n",{"type":20,"tag":60,"props":730,"children":731},{"class":62,"line":539},[732,736,740],{"type":20,"tag":60,"props":733,"children":734},{"style":207},[735],{"type":26,"value":210},{"type":20,"tag":60,"props":737,"children":738},{"style":77},[739],{"type":26,"value":215},{"type":20,"tag":60,"props":741,"children":742},{"style":67},[743],{"type":26,"value":744},"# Output: {'key1': 'value1'}\n",{"type":20,"tag":44,"props":746,"children":748},{"id":747},"checking-for-keys",[749],{"type":26,"value":750},"Checking for Keys",{"type":20,"tag":51,"props":752,"children":754},{"className":53,"code":753,"language":12,"meta":8,"style":8},"# Checking if a key exists in the hash map\nprint('key1' in my_hash_map)  # Output: True\nprint('key3' in my_hash_map)  # Output: False\n\nres = 'key1' in my_hash_map\nprint(res)  # Output: True\n\nkey_to_check = 'key3'\nif key_to_check in my_hash_map:\n    print(f\"{key_to_check} exists in the hash map.\")\nelse:\n    print(f\"{key_to_check} does not exist in the hash map.\")\n\nif key_to_check not in my_hash_map:\n    print(f\"{key_to_check} does not exist in the hash map.\")\nelse:\n    print(f\"{key_to_check} exists in the hash map.\")\n",[755],{"type":20,"tag":35,"props":756,"children":757},{"__ignoreMap":8},[758,766,797,825,832,858,874,881,898,921,967,980,1020,1027,1052,1092,1104],{"type":20,"tag":60,"props":759,"children":760},{"class":62,"line":63},[761],{"type":20,"tag":60,"props":762,"children":763},{"style":67},[764],{"type":26,"value":765},"# Checking if a key exists in the hash map\n",{"type":20,"tag":60,"props":767,"children":768},{"class":62,"line":73},[769,773,778,782,787,792],{"type":20,"tag":60,"props":770,"children":771},{"style":207},[772],{"type":26,"value":210},{"type":20,"tag":60,"props":774,"children":775},{"style":77},[776],{"type":26,"value":777},"(",{"type":20,"tag":60,"props":779,"children":780},{"style":134},[781],{"type":26,"value":258},{"type":20,"tag":60,"props":783,"children":784},{"style":83},[785],{"type":26,"value":786}," in",{"type":20,"tag":60,"props":788,"children":789},{"style":77},[790],{"type":26,"value":791}," my_hash_map)  ",{"type":20,"tag":60,"props":793,"children":794},{"style":67},[795],{"type":26,"value":796},"# Output: True\n",{"type":20,"tag":60,"props":798,"children":799},{"class":62,"line":94},[800,804,808,812,816,820],{"type":20,"tag":60,"props":801,"children":802},{"style":207},[803],{"type":26,"value":210},{"type":20,"tag":60,"props":805,"children":806},{"style":77},[807],{"type":26,"value":777},{"type":20,"tag":60,"props":809,"children":810},{"style":134},[811],{"type":26,"value":584},{"type":20,"tag":60,"props":813,"children":814},{"style":83},[815],{"type":26,"value":786},{"type":20,"tag":60,"props":817,"children":818},{"style":77},[819],{"type":26,"value":791},{"type":20,"tag":60,"props":821,"children":822},{"style":67},[823],{"type":26,"value":824},"# Output: False\n",{"type":20,"tag":60,"props":826,"children":827},{"class":62,"line":104},[828],{"type":20,"tag":60,"props":829,"children":830},{"emptyLinePlaceholder":98},[831],{"type":26,"value":101},{"type":20,"tag":60,"props":833,"children":834},{"class":62,"line":113},[835,840,844,849,853],{"type":20,"tag":60,"props":836,"children":837},{"style":77},[838],{"type":26,"value":839},"res ",{"type":20,"tag":60,"props":841,"children":842},{"style":83},[843],{"type":26,"value":86},{"type":20,"tag":60,"props":845,"children":846},{"style":134},[847],{"type":26,"value":848}," 'key1'",{"type":20,"tag":60,"props":850,"children":851},{"style":83},[852],{"type":26,"value":786},{"type":20,"tag":60,"props":854,"children":855},{"style":77},[856],{"type":26,"value":857}," my_hash_map\n",{"type":20,"tag":60,"props":859,"children":860},{"class":62,"line":130},[861,865,870],{"type":20,"tag":60,"props":862,"children":863},{"style":207},[864],{"type":26,"value":210},{"type":20,"tag":60,"props":866,"children":867},{"style":77},[868],{"type":26,"value":869},"(res)  ",{"type":20,"tag":60,"props":871,"children":872},{"style":67},[873],{"type":26,"value":796},{"type":20,"tag":60,"props":875,"children":876},{"class":62,"line":155},[877],{"type":20,"tag":60,"props":878,"children":879},{"emptyLinePlaceholder":98},[880],{"type":26,"value":101},{"type":20,"tag":60,"props":882,"children":883},{"class":62,"line":177},[884,889,893],{"type":20,"tag":60,"props":885,"children":886},{"style":77},[887],{"type":26,"value":888},"key_to_check ",{"type":20,"tag":60,"props":890,"children":891},{"style":83},[892],{"type":26,"value":86},{"type":20,"tag":60,"props":894,"children":895},{"style":134},[896],{"type":26,"value":897}," 'key3'\n",{"type":20,"tag":60,"props":899,"children":900},{"class":62,"line":195},[901,906,911,916],{"type":20,"tag":60,"props":902,"children":903},{"style":83},[904],{"type":26,"value":905},"if",{"type":20,"tag":60,"props":907,"children":908},{"style":77},[909],{"type":26,"value":910}," key_to_check ",{"type":20,"tag":60,"props":912,"children":913},{"style":83},[914],{"type":26,"value":915},"in",{"type":20,"tag":60,"props":917,"children":918},{"style":77},[919],{"type":26,"value":920}," my_hash_map:\n",{"type":20,"tag":60,"props":922,"children":923},{"class":62,"line":15},[924,929,933,938,943,948,953,958,963],{"type":20,"tag":60,"props":925,"children":926},{"style":207},[927],{"type":26,"value":928},"    print",{"type":20,"tag":60,"props":930,"children":931},{"style":77},[932],{"type":26,"value":777},{"type":20,"tag":60,"props":934,"children":935},{"style":83},[936],{"type":26,"value":937},"f",{"type":20,"tag":60,"props":939,"children":940},{"style":134},[941],{"type":26,"value":942},"\"",{"type":20,"tag":60,"props":944,"children":945},{"style":207},[946],{"type":26,"value":947},"{",{"type":20,"tag":60,"props":949,"children":950},{"style":77},[951],{"type":26,"value":952},"key_to_check",{"type":20,"tag":60,"props":954,"children":955},{"style":207},[956],{"type":26,"value":957},"}",{"type":20,"tag":60,"props":959,"children":960},{"style":134},[961],{"type":26,"value":962}," exists in the hash map.\"",{"type":20,"tag":60,"props":964,"children":965},{"style":77},[966],{"type":26,"value":646},{"type":20,"tag":60,"props":968,"children":969},{"class":62,"line":502},[970,975],{"type":20,"tag":60,"props":971,"children":972},{"style":83},[973],{"type":26,"value":974},"else",{"type":20,"tag":60,"props":976,"children":977},{"style":77},[978],{"type":26,"value":979},":\n",{"type":20,"tag":60,"props":981,"children":982},{"class":62,"line":527},[983,987,991,995,999,1003,1007,1011,1016],{"type":20,"tag":60,"props":984,"children":985},{"style":207},[986],{"type":26,"value":928},{"type":20,"tag":60,"props":988,"children":989},{"style":77},[990],{"type":26,"value":777},{"type":20,"tag":60,"props":992,"children":993},{"style":83},[994],{"type":26,"value":937},{"type":20,"tag":60,"props":996,"children":997},{"style":134},[998],{"type":26,"value":942},{"type":20,"tag":60,"props":1000,"children":1001},{"style":207},[1002],{"type":26,"value":947},{"type":20,"tag":60,"props":1004,"children":1005},{"style":77},[1006],{"type":26,"value":952},{"type":20,"tag":60,"props":1008,"children":1009},{"style":207},[1010],{"type":26,"value":957},{"type":20,"tag":60,"props":1012,"children":1013},{"style":134},[1014],{"type":26,"value":1015}," does not exist in the hash map.\"",{"type":20,"tag":60,"props":1017,"children":1018},{"style":77},[1019],{"type":26,"value":646},{"type":20,"tag":60,"props":1021,"children":1022},{"class":62,"line":539},[1023],{"type":20,"tag":60,"props":1024,"children":1025},{"emptyLinePlaceholder":98},[1026],{"type":26,"value":101},{"type":20,"tag":60,"props":1028,"children":1030},{"class":62,"line":1029},14,[1031,1035,1039,1044,1048],{"type":20,"tag":60,"props":1032,"children":1033},{"style":83},[1034],{"type":26,"value":905},{"type":20,"tag":60,"props":1036,"children":1037},{"style":77},[1038],{"type":26,"value":910},{"type":20,"tag":60,"props":1040,"children":1041},{"style":83},[1042],{"type":26,"value":1043},"not",{"type":20,"tag":60,"props":1045,"children":1046},{"style":83},[1047],{"type":26,"value":786},{"type":20,"tag":60,"props":1049,"children":1050},{"style":77},[1051],{"type":26,"value":920},{"type":20,"tag":60,"props":1053,"children":1055},{"class":62,"line":1054},15,[1056,1060,1064,1068,1072,1076,1080,1084,1088],{"type":20,"tag":60,"props":1057,"children":1058},{"style":207},[1059],{"type":26,"value":928},{"type":20,"tag":60,"props":1061,"children":1062},{"style":77},[1063],{"type":26,"value":777},{"type":20,"tag":60,"props":1065,"children":1066},{"style":83},[1067],{"type":26,"value":937},{"type":20,"tag":60,"props":1069,"children":1070},{"style":134},[1071],{"type":26,"value":942},{"type":20,"tag":60,"props":1073,"children":1074},{"style":207},[1075],{"type":26,"value":947},{"type":20,"tag":60,"props":1077,"children":1078},{"style":77},[1079],{"type":26,"value":952},{"type":20,"tag":60,"props":1081,"children":1082},{"style":207},[1083],{"type":26,"value":957},{"type":20,"tag":60,"props":1085,"children":1086},{"style":134},[1087],{"type":26,"value":1015},{"type":20,"tag":60,"props":1089,"children":1090},{"style":77},[1091],{"type":26,"value":646},{"type":20,"tag":60,"props":1093,"children":1095},{"class":62,"line":1094},16,[1096,1100],{"type":20,"tag":60,"props":1097,"children":1098},{"style":83},[1099],{"type":26,"value":974},{"type":20,"tag":60,"props":1101,"children":1102},{"style":77},[1103],{"type":26,"value":979},{"type":20,"tag":60,"props":1105,"children":1107},{"class":62,"line":1106},17,[1108,1112,1116,1120,1124,1128,1132,1136,1140],{"type":20,"tag":60,"props":1109,"children":1110},{"style":207},[1111],{"type":26,"value":928},{"type":20,"tag":60,"props":1113,"children":1114},{"style":77},[1115],{"type":26,"value":777},{"type":20,"tag":60,"props":1117,"children":1118},{"style":83},[1119],{"type":26,"value":937},{"type":20,"tag":60,"props":1121,"children":1122},{"style":134},[1123],{"type":26,"value":942},{"type":20,"tag":60,"props":1125,"children":1126},{"style":207},[1127],{"type":26,"value":947},{"type":20,"tag":60,"props":1129,"children":1130},{"style":77},[1131],{"type":26,"value":952},{"type":20,"tag":60,"props":1133,"children":1134},{"style":207},[1135],{"type":26,"value":957},{"type":20,"tag":60,"props":1137,"children":1138},{"style":134},[1139],{"type":26,"value":962},{"type":20,"tag":60,"props":1141,"children":1142},{"style":77},[1143],{"type":26,"value":646},{"type":20,"tag":44,"props":1145,"children":1147},{"id":1146},"checking-for-values",[1148],{"type":26,"value":1149},"Checking for Values",{"type":20,"tag":51,"props":1151,"children":1153},{"className":53,"code":1152,"language":12,"meta":8,"style":8},"# Checking if a value exists in the hash map\nprint('value1' in my_hash_map.values())  # Output: True\nprint('value3' in my_hash_map.values())  # Output: False\n",[1154],{"type":20,"tag":35,"props":1155,"children":1156},{"__ignoreMap":8},[1157,1165,1193],{"type":20,"tag":60,"props":1158,"children":1159},{"class":62,"line":63},[1160],{"type":20,"tag":60,"props":1161,"children":1162},{"style":67},[1163],{"type":26,"value":1164},"# Checking if a value exists in the hash map\n",{"type":20,"tag":60,"props":1166,"children":1167},{"class":62,"line":73},[1168,1172,1176,1180,1184,1189],{"type":20,"tag":60,"props":1169,"children":1170},{"style":207},[1171],{"type":26,"value":210},{"type":20,"tag":60,"props":1173,"children":1174},{"style":77},[1175],{"type":26,"value":777},{"type":20,"tag":60,"props":1177,"children":1178},{"style":134},[1179],{"type":26,"value":147},{"type":20,"tag":60,"props":1181,"children":1182},{"style":83},[1183],{"type":26,"value":786},{"type":20,"tag":60,"props":1185,"children":1186},{"style":77},[1187],{"type":26,"value":1188}," my_hash_map.values())  ",{"type":20,"tag":60,"props":1190,"children":1191},{"style":67},[1192],{"type":26,"value":796},{"type":20,"tag":60,"props":1194,"children":1195},{"class":62,"line":94},[1196,1200,1204,1209,1213,1217],{"type":20,"tag":60,"props":1197,"children":1198},{"style":207},[1199],{"type":26,"value":210},{"type":20,"tag":60,"props":1201,"children":1202},{"style":77},[1203],{"type":26,"value":777},{"type":20,"tag":60,"props":1205,"children":1206},{"style":134},[1207],{"type":26,"value":1208},"'value3'",{"type":20,"tag":60,"props":1210,"children":1211},{"style":83},[1212],{"type":26,"value":786},{"type":20,"tag":60,"props":1214,"children":1215},{"style":77},[1216],{"type":26,"value":1188},{"type":20,"tag":60,"props":1218,"children":1219},{"style":67},[1220],{"type":26,"value":824},{"type":20,"tag":44,"props":1222,"children":1224},{"id":1223},"checking-the-size-of-the-hash-map",[1225],{"type":26,"value":1226},"Checking the Size of the Hash Map",{"type":20,"tag":51,"props":1228,"children":1230},{"className":53,"code":1229,"language":12,"meta":8,"style":8},"# Checking the number of key-value pairs in the hash map\nprint(len(my_hash_map))  # Output: 1\n",[1231],{"type":20,"tag":35,"props":1232,"children":1233},{"__ignoreMap":8},[1234,1242],{"type":20,"tag":60,"props":1235,"children":1236},{"class":62,"line":63},[1237],{"type":20,"tag":60,"props":1238,"children":1239},{"style":67},[1240],{"type":26,"value":1241},"# Checking the number of key-value pairs in the hash map\n",{"type":20,"tag":60,"props":1243,"children":1244},{"class":62,"line":73},[1245,1249,1253,1258,1263],{"type":20,"tag":60,"props":1246,"children":1247},{"style":207},[1248],{"type":26,"value":210},{"type":20,"tag":60,"props":1250,"children":1251},{"style":77},[1252],{"type":26,"value":777},{"type":20,"tag":60,"props":1254,"children":1255},{"style":207},[1256],{"type":26,"value":1257},"len",{"type":20,"tag":60,"props":1259,"children":1260},{"style":77},[1261],{"type":26,"value":1262},"(my_hash_map))  ",{"type":20,"tag":60,"props":1264,"children":1265},{"style":67},[1266],{"type":26,"value":1267},"# Output: 1\n",{"type":20,"tag":44,"props":1269,"children":1271},{"id":1270},"clearing-the-hash-map",[1272],{"type":26,"value":1273},"Clearing the Hash Map",{"type":20,"tag":51,"props":1275,"children":1277},{"className":53,"code":1276,"language":12,"meta":8,"style":8},"# Clearing all key-value pairs from the hash map\nmy_hash_map.clear()\nprint(my_hash_map)  # Output: {}\n",[1278],{"type":20,"tag":35,"props":1279,"children":1280},{"__ignoreMap":8},[1281,1289,1297],{"type":20,"tag":60,"props":1282,"children":1283},{"class":62,"line":63},[1284],{"type":20,"tag":60,"props":1285,"children":1286},{"style":67},[1287],{"type":26,"value":1288},"# Clearing all key-value pairs from the hash map\n",{"type":20,"tag":60,"props":1290,"children":1291},{"class":62,"line":73},[1292],{"type":20,"tag":60,"props":1293,"children":1294},{"style":77},[1295],{"type":26,"value":1296},"my_hash_map.clear()\n",{"type":20,"tag":60,"props":1298,"children":1299},{"class":62,"line":94},[1300,1304,1308],{"type":20,"tag":60,"props":1301,"children":1302},{"style":207},[1303],{"type":26,"value":210},{"type":20,"tag":60,"props":1305,"children":1306},{"style":77},[1307],{"type":26,"value":215},{"type":20,"tag":60,"props":1309,"children":1310},{"style":67},[1311],{"type":26,"value":1312},"# Output: {}\n",{"type":20,"tag":44,"props":1314,"children":1316},{"id":1315},"iterating-over-a-hash-map",[1317],{"type":26,"value":1318},"Iterating Over a Hash Map",{"type":20,"tag":51,"props":1320,"children":1322},{"className":53,"code":1321,"language":12,"meta":8,"style":8},"# Iterating over keys\nfor key in my_hash_map:\n    print(key)  # Output: key1, key2\n\n# Iterating over values\nfor value in my_hash_map.values():\n    print(value)  # Output: value1, new_value2\n\n# Iterating over key-value pairs\nfor key, value in my_hash_map.items():\n    print(f\"{key}: {value}\")  # Output: key1: value1, key2: new_value2\n",[1323],{"type":20,"tag":35,"props":1324,"children":1325},{"__ignoreMap":8},[1326,1334,1355,1372,1379,1387,1408,1425,1432,1440,1461],{"type":20,"tag":60,"props":1327,"children":1328},{"class":62,"line":63},[1329],{"type":20,"tag":60,"props":1330,"children":1331},{"style":67},[1332],{"type":26,"value":1333},"# Iterating over keys\n",{"type":20,"tag":60,"props":1335,"children":1336},{"class":62,"line":73},[1337,1342,1347,1351],{"type":20,"tag":60,"props":1338,"children":1339},{"style":83},[1340],{"type":26,"value":1341},"for",{"type":20,"tag":60,"props":1343,"children":1344},{"style":77},[1345],{"type":26,"value":1346}," key ",{"type":20,"tag":60,"props":1348,"children":1349},{"style":83},[1350],{"type":26,"value":915},{"type":20,"tag":60,"props":1352,"children":1353},{"style":77},[1354],{"type":26,"value":920},{"type":20,"tag":60,"props":1356,"children":1357},{"class":62,"line":94},[1358,1362,1367],{"type":20,"tag":60,"props":1359,"children":1360},{"style":207},[1361],{"type":26,"value":928},{"type":20,"tag":60,"props":1363,"children":1364},{"style":77},[1365],{"type":26,"value":1366},"(key)  ",{"type":20,"tag":60,"props":1368,"children":1369},{"style":67},[1370],{"type":26,"value":1371},"# Output: key1, key2\n",{"type":20,"tag":60,"props":1373,"children":1374},{"class":62,"line":104},[1375],{"type":20,"tag":60,"props":1376,"children":1377},{"emptyLinePlaceholder":98},[1378],{"type":26,"value":101},{"type":20,"tag":60,"props":1380,"children":1381},{"class":62,"line":113},[1382],{"type":20,"tag":60,"props":1383,"children":1384},{"style":67},[1385],{"type":26,"value":1386},"# Iterating over values\n",{"type":20,"tag":60,"props":1388,"children":1389},{"class":62,"line":130},[1390,1394,1399,1403],{"type":20,"tag":60,"props":1391,"children":1392},{"style":83},[1393],{"type":26,"value":1341},{"type":20,"tag":60,"props":1395,"children":1396},{"style":77},[1397],{"type":26,"value":1398}," value ",{"type":20,"tag":60,"props":1400,"children":1401},{"style":83},[1402],{"type":26,"value":915},{"type":20,"tag":60,"props":1404,"children":1405},{"style":77},[1406],{"type":26,"value":1407}," my_hash_map.values():\n",{"type":20,"tag":60,"props":1409,"children":1410},{"class":62,"line":155},[1411,1415,1420],{"type":20,"tag":60,"props":1412,"children":1413},{"style":207},[1414],{"type":26,"value":928},{"type":20,"tag":60,"props":1416,"children":1417},{"style":77},[1418],{"type":26,"value":1419},"(value)  ",{"type":20,"tag":60,"props":1421,"children":1422},{"style":67},[1423],{"type":26,"value":1424},"# Output: value1, new_value2\n",{"type":20,"tag":60,"props":1426,"children":1427},{"class":62,"line":177},[1428],{"type":20,"tag":60,"props":1429,"children":1430},{"emptyLinePlaceholder":98},[1431],{"type":26,"value":101},{"type":20,"tag":60,"props":1433,"children":1434},{"class":62,"line":195},[1435],{"type":20,"tag":60,"props":1436,"children":1437},{"style":67},[1438],{"type":26,"value":1439},"# Iterating over key-value pairs\n",{"type":20,"tag":60,"props":1441,"children":1442},{"class":62,"line":15},[1443,1447,1452,1456],{"type":20,"tag":60,"props":1444,"children":1445},{"style":83},[1446],{"type":26,"value":1341},{"type":20,"tag":60,"props":1448,"children":1449},{"style":77},[1450],{"type":26,"value":1451}," key, value ",{"type":20,"tag":60,"props":1453,"children":1454},{"style":83},[1455],{"type":26,"value":915},{"type":20,"tag":60,"props":1457,"children":1458},{"style":77},[1459],{"type":26,"value":1460}," my_hash_map.items():\n",{"type":20,"tag":60,"props":1462,"children":1463},{"class":62,"line":502},[1464,1468,1472,1476,1480,1484,1489,1493,1497,1501,1506,1510,1514,1519],{"type":20,"tag":60,"props":1465,"children":1466},{"style":207},[1467],{"type":26,"value":928},{"type":20,"tag":60,"props":1469,"children":1470},{"style":77},[1471],{"type":26,"value":777},{"type":20,"tag":60,"props":1473,"children":1474},{"style":83},[1475],{"type":26,"value":937},{"type":20,"tag":60,"props":1477,"children":1478},{"style":134},[1479],{"type":26,"value":942},{"type":20,"tag":60,"props":1481,"children":1482},{"style":207},[1483],{"type":26,"value":947},{"type":20,"tag":60,"props":1485,"children":1486},{"style":77},[1487],{"type":26,"value":1488},"key",{"type":20,"tag":60,"props":1490,"children":1491},{"style":207},[1492],{"type":26,"value":957},{"type":20,"tag":60,"props":1494,"children":1495},{"style":134},[1496],{"type":26,"value":142},{"type":20,"tag":60,"props":1498,"children":1499},{"style":207},[1500],{"type":26,"value":947},{"type":20,"tag":60,"props":1502,"children":1503},{"style":77},[1504],{"type":26,"value":1505},"value",{"type":20,"tag":60,"props":1507,"children":1508},{"style":207},[1509],{"type":26,"value":957},{"type":20,"tag":60,"props":1511,"children":1512},{"style":134},[1513],{"type":26,"value":942},{"type":20,"tag":60,"props":1515,"children":1516},{"style":77},[1517],{"type":26,"value":1518},")  ",{"type":20,"tag":60,"props":1520,"children":1521},{"style":67},[1522],{"type":26,"value":1523},"# Output: key1: value1, key2: new_value2\n",{"type":20,"tag":29,"props":1525,"children":1526},{},[1527],{"type":26,"value":1528},"Hash maps are a powerful data structure that can be used in various competitive programming problems, such as counting frequencies, grouping items, and implementing caches. Understanding how to use hash maps effectively can help you solve problems more efficiently.",{"type":20,"tag":1530,"props":1531,"children":1532},"style",{},[1533],{"type":26,"value":1534},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":8,"searchDepth":94,"depth":94,"links":1536},[1537],{"id":23,"depth":73,"text":27,"children":1538},[1539,1540,1541,1542,1543,1544,1545,1546,1547],{"id":46,"depth":94,"text":49},{"id":223,"depth":94,"text":226},{"id":387,"depth":94,"text":390},{"id":548,"depth":94,"text":551},{"id":747,"depth":94,"text":750},{"id":1146,"depth":94,"text":1149},{"id":1223,"depth":94,"text":1226},{"id":1270,"depth":94,"text":1273},{"id":1315,"depth":94,"text":1318},"markdown","content:data-structure-algorithm:hash-map.md","content","data-structure-algorithm\u002Fhash-map.md","data-structure-algorithm\u002Fhash-map","md",[1555,1562,1567,1572,1581,1586,1591,1596,1601,1610,1616,1621,1626,1631,1636,1641,1649,1655,1662],{"_path":1556,"title":1557,"description":1558,"tags":1559,"date":1561},"\u002Fdata-structure-algorithm\u002Farray-manipulation\u002Ffor-looping","For Looping in Python","Using for loops to manipulate arrays in Python.",[12,13,1560],"arrays","2026-03-18",{"_path":1563,"title":1564,"description":1565,"tags":1566,"date":1561},"\u002Fdata-structure-algorithm\u002Farray-manipulation\u002Fwhile-looping","While Looping in Python","Using while loops to manipulate arrays in Python.",[12,13,1560],{"_path":1568,"title":1569,"description":1570,"tags":1571,"date":14},"\u002Fdata-structure-algorithm\u002Fassignments","Assignments","Assignments in Python for competitive programming.",[12,13],{"_path":1573,"title":1574,"description":1575,"tags":1576,"date":1580},"\u002Fdata-structure-algorithm\u002Fbuzzword","Buzzword List DSA","Common terms and concepts in data structures and algorithms.",[1577,1578,1579],"dsa","algorithms","data-structures","2026-04-03",{"_path":1582,"title":1583,"description":1584,"tags":1585,"date":14},"\u002Fdata-structure-algorithm\u002Fdata-type","Data Types","Data types in Python for competitive programming.",[12,13],{"_path":1587,"title":1588,"description":1589,"tags":1590,"date":14},"\u002Fdata-structure-algorithm\u002Finput-output","Input and Output","Handling input and output in Python for competitive programming.",[12,13],{"_path":1592,"title":1593,"description":1594,"tags":1595,"date":1561},"\u002Fdata-structure-algorithm\u002Fmath-library\u002Fsum","Sum Elements","Using for loops to sum elements in Python.",[12,13,1560],{"_path":1597,"title":1598,"description":1599,"tags":1600,"date":1561},"\u002Fdata-structure-algorithm\u002Fmath-library\u002Fsummary","Summary","Summary of the math library in Python.",[12,13,1560],{"_path":1602,"title":1603,"description":1604,"tags":1605,"date":1609},"\u002Fdocker\u002Fcheat-sheets","Docker Cheat Sheets","Cheat sheets for frequently used Docker commands and concepts",[1606,1607,1608],"docker","devops","infrastructure","2026-05-01",{"_path":1611,"title":1612,"description":1613,"tags":1614,"date":1615},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-container","Docker Container","Introduction to Docker containers and their usage",[1606,1607,1608],"2026-03-12",{"_path":1617,"title":1618,"description":1619,"tags":1620,"date":1615},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-execution","Docker Execution","Introduction to Docker execution and their usage",[1606,1607,1608],{"_path":1622,"title":1623,"description":1624,"tags":1625,"date":1615},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-image","Docker Image","Introduction to Docker images and their usage",[1606,1607,1608],{"_path":1627,"title":1628,"description":1629,"tags":1630,"date":1615},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-logging","Docker Logging","Introduction to Docker logging and their usage",[1606,1607,1608],{"_path":1632,"title":1633,"description":1634,"tags":1635,"date":1615},"\u002Fdocker\u002Fdocker-prerequisites\u002Fdocker-installation","Docker Installation","Introduction to Docker installation and their usage",[1606,1607,1608],{"_path":1637,"title":1638,"description":1639,"tags":1640,"date":1615},"\u002Fdocker\u002Fresources","Docker Resources","Collection of Docker resources for learning and reference",[1606,1607,1608],{"_path":1642,"title":1643,"description":1644,"tags":1645,"date":1615},"\u002Fjavascript\u002Fpromises","Promise Patterns","Common JavaScript promise patterns and async\u002Fawait usage",[1646,1647,1648],"javascript","frontend","async",{"_path":1650,"title":1651,"description":1652,"tags":1653,"date":1561},"\u002Fphp\u002Farrays","PHP Array Functions","Essential PHP array functions and patterns",[1654,13,1560],"php",{"_path":1656,"title":1657,"description":1658,"tags":1659,"date":1661},"\u002Fphp\u002Fpatterns\u002Fsingleton","Singleton Pattern","Implementing the singleton pattern in PHP",[1654,1660,13],"patterns","2026-03-13",{"_path":1663,"title":1664,"description":1665,"tags":1666,"date":1667},"\u002Fphp\u002Freferences","PHP References (&)","Useful PHP reference snippets and patterns",[1654,13],"2026-03-19",[1669,1670,1671,1672,1673,1674,1675,1676,1678,1679,1681,1682,1684,1686,1688,1689,1690,1691,1692,1693],{"_path":1556,"title":1557,"weight":15},{"_path":1563,"title":1564,"weight":15},{"_path":1568,"title":1569,"weight":94},{"_path":1573,"title":1574,"weight":63},{"_path":1582,"title":1583,"weight":73},{"_path":5,"title":9,"weight":15},{"_path":1587,"title":1588,"weight":63},{"_path":1592,"title":1593,"weight":1677},20,{"_path":1597,"title":1598,"weight":15},{"_path":1602,"title":1603,"weight":1680},100,{"_path":1611,"title":1612,"weight":1677},{"_path":1617,"title":1618,"weight":1683},22,{"_path":1622,"title":1623,"weight":1685},21,{"_path":1627,"title":1628,"weight":1687},23,{"_path":1632,"title":1633,"weight":15},{"_path":1637,"title":1638,"weight":63},{"_path":1642,"title":1643},{"_path":1650,"title":1651,"weight":63},{"_path":1656,"title":1657},{"_path":1663,"title":1664,"weight":73},1777825383683]