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