[{"data":1,"prerenderedAt":1354},["ShallowReactive",2],{"content-all-\u002Fdata-structure-algorithm\u002Fdata-type":3,"related-\u002Fdata-structure-algorithm\u002Fdata-type":1073,"sidebar-content":1303},[4],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"tags":11,"date":14,"weight":15,"body":16,"_type":1067,"_id":1068,"_source":1069,"_file":1070,"_stem":1071,"_extension":1072},"\u002Fdata-structure-algorithm\u002Fdata-type","data-structure-algorithm",false,"","Data Types","Data types in Python for competitive programming.",[12,13],"python","backend","2026-04-10",2,{"type":17,"children":18,"toc":1047},"root",[19,28,34,41,92,98,169,175,212,218,238,244,280,286,306,312,366,371,377,382,388,487,493,666,672,778,784,849,855,884,890,919,925,1036,1041],{"type":20,"tag":21,"props":22,"children":24},"element","h2",{"id":23},"data-types-in-python",[25],{"type":26,"value":27},"text","Data Types in Python",{"type":20,"tag":29,"props":30,"children":31},"p",{},[32],{"type":26,"value":33},"In Python, there are several built-in data types that are commonly used in competitive programming. These data types can be categorized into several groups:",{"type":20,"tag":35,"props":36,"children":38},"h3",{"id":37},"numeric-types",[39],{"type":26,"value":40},"Numeric Types",{"type":20,"tag":42,"props":43,"children":44},"ul",{},[45,64,81],{"type":20,"tag":46,"props":47,"children":48},"li",{},[49,56,58],{"type":20,"tag":50,"props":51,"children":53},"code",{"className":52},[],[54],{"type":26,"value":55},"int",{"type":26,"value":57},": Represents integer values. Example: ",{"type":20,"tag":50,"props":59,"children":61},{"className":60},[],[62],{"type":26,"value":63},"x = 10",{"type":20,"tag":46,"props":65,"children":66},{},[67,73,75],{"type":20,"tag":50,"props":68,"children":70},{"className":69},[],[71],{"type":26,"value":72},"float",{"type":26,"value":74},": Represents floating-point numbers. Example: ",{"type":20,"tag":50,"props":76,"children":78},{"className":77},[],[79],{"type":26,"value":80},"y = 3.14",{"type":20,"tag":46,"props":82,"children":83},{},[84,90],{"type":20,"tag":50,"props":85,"children":87},{"className":86},[],[88],{"type":26,"value":89},"complex",{"type":26,"value":91},": Represents complex numbers. Example: `z = 1 + 2j",{"type":20,"tag":35,"props":93,"children":95},{"id":94},"sequence-types",[96],{"type":26,"value":97},"Sequence Types",{"type":20,"tag":42,"props":99,"children":100},{},[101,118,135,152],{"type":20,"tag":46,"props":102,"children":103},{},[104,110,112],{"type":20,"tag":50,"props":105,"children":107},{"className":106},[],[108],{"type":26,"value":109},"list",{"type":26,"value":111},": An ordered, mutable collection of items. Example: ",{"type":20,"tag":50,"props":113,"children":115},{"className":114},[],[116],{"type":26,"value":117},"my_list = [1, 2, 3]",{"type":20,"tag":46,"props":119,"children":120},{},[121,127,129],{"type":20,"tag":50,"props":122,"children":124},{"className":123},[],[125],{"type":26,"value":126},"tuple",{"type":26,"value":128},": An ordered, immutable collection of items. Example: ",{"type":20,"tag":50,"props":130,"children":132},{"className":131},[],[133],{"type":26,"value":134},"my_tuple = (1, 2, 3)",{"type":20,"tag":46,"props":136,"children":137},{},[138,144,146],{"type":20,"tag":50,"props":139,"children":141},{"className":140},[],[142],{"type":26,"value":143},"range",{"type":26,"value":145},": Represents a sequence of numbers. Example: ",{"type":20,"tag":50,"props":147,"children":149},{"className":148},[],[150],{"type":26,"value":151},"my_range = range(1, 10)",{"type":20,"tag":46,"props":153,"children":154},{},[155,161,163],{"type":20,"tag":50,"props":156,"children":158},{"className":157},[],[159],{"type":26,"value":160},"str",{"type":26,"value":162},": Represents a sequence of characters. Example: ",{"type":20,"tag":50,"props":164,"children":166},{"className":165},[],[167],{"type":26,"value":168},"my_string = \"Hello\"",{"type":20,"tag":35,"props":170,"children":172},{"id":171},"set-types",[173],{"type":26,"value":174},"Set Types",{"type":20,"tag":42,"props":176,"children":177},{},[178,195],{"type":20,"tag":46,"props":179,"children":180},{},[181,187,189],{"type":20,"tag":50,"props":182,"children":184},{"className":183},[],[185],{"type":26,"value":186},"set",{"type":26,"value":188},": An unordered collection of unique items. Example: ",{"type":20,"tag":50,"props":190,"children":192},{"className":191},[],[193],{"type":26,"value":194},"my_set = {1, 2, 3}",{"type":20,"tag":46,"props":196,"children":197},{},[198,204,206],{"type":20,"tag":50,"props":199,"children":201},{"className":200},[],[202],{"type":26,"value":203},"frozenset",{"type":26,"value":205},": An immutable version of a set. Example: ",{"type":20,"tag":50,"props":207,"children":209},{"className":208},[],[210],{"type":26,"value":211},"my_frozenset = frozenset({1, 2, 3})",{"type":20,"tag":35,"props":213,"children":215},{"id":214},"mapping-types",[216],{"type":26,"value":217},"Mapping Types",{"type":20,"tag":42,"props":219,"children":220},{},[221],{"type":20,"tag":46,"props":222,"children":223},{},[224,230,232],{"type":20,"tag":50,"props":225,"children":227},{"className":226},[],[228],{"type":26,"value":229},"dict",{"type":26,"value":231},": Represents a collection of key-value pairs. Example: ",{"type":20,"tag":50,"props":233,"children":235},{"className":234},[],[236],{"type":26,"value":237},"my_dict = {'key1': 'value1', 'key2': 'value2'}",{"type":20,"tag":35,"props":239,"children":241},{"id":240},"boolean-type",[242],{"type":26,"value":243},"Boolean Type",{"type":20,"tag":42,"props":245,"children":246},{},[247],{"type":20,"tag":46,"props":248,"children":249},{},[250,256,258,264,266,272,274],{"type":20,"tag":50,"props":251,"children":253},{"className":252},[],[254],{"type":26,"value":255},"bool",{"type":26,"value":257},": Represents a boolean value, which can be either ",{"type":20,"tag":50,"props":259,"children":261},{"className":260},[],[262],{"type":26,"value":263},"True",{"type":26,"value":265}," or ",{"type":20,"tag":50,"props":267,"children":269},{"className":268},[],[270],{"type":26,"value":271},"False",{"type":26,"value":273},". Example: ",{"type":20,"tag":50,"props":275,"children":277},{"className":276},[],[278],{"type":26,"value":279},"is_valid = True",{"type":20,"tag":35,"props":281,"children":283},{"id":282},"none-type",[284],{"type":26,"value":285},"None Type",{"type":20,"tag":42,"props":287,"children":288},{},[289],{"type":20,"tag":46,"props":290,"children":291},{},[292,298,300],{"type":20,"tag":50,"props":293,"children":295},{"className":294},[],[296],{"type":26,"value":297},"NoneType",{"type":26,"value":299},": Represents the absence of a value. Example: ",{"type":20,"tag":50,"props":301,"children":303},{"className":302},[],[304],{"type":26,"value":305},"result = None",{"type":20,"tag":35,"props":307,"children":309},{"id":308},"other-types",[310],{"type":26,"value":311},"Other Types",{"type":20,"tag":42,"props":313,"children":314},{},[315,332,349],{"type":20,"tag":46,"props":316,"children":317},{},[318,324,326],{"type":20,"tag":50,"props":319,"children":321},{"className":320},[],[322],{"type":26,"value":323},"bytes",{"type":26,"value":325},": Represents a sequence of bytes. Example: ",{"type":20,"tag":50,"props":327,"children":329},{"className":328},[],[330],{"type":26,"value":331},"my_bytes = b'Hello'",{"type":20,"tag":46,"props":333,"children":334},{},[335,341,343],{"type":20,"tag":50,"props":336,"children":338},{"className":337},[],[339],{"type":26,"value":340},"bytearray",{"type":26,"value":342},": A mutable sequence of bytes. Example: ",{"type":20,"tag":50,"props":344,"children":346},{"className":345},[],[347],{"type":26,"value":348},"my_bytearray = bytearray(b'Hello')",{"type":20,"tag":46,"props":350,"children":351},{},[352,358,360],{"type":20,"tag":50,"props":353,"children":355},{"className":354},[],[356],{"type":26,"value":357},"memoryview",{"type":26,"value":359},": A memory view object that allows you to access the internal data of an object that supports the buffer protocol. Example: ",{"type":20,"tag":50,"props":361,"children":363},{"className":362},[],[364],{"type":26,"value":365},"my_memoryview = memoryview(b'Hello')",{"type":20,"tag":29,"props":367,"children":368},{},[369],{"type":26,"value":370},"Understanding these data types is crucial for effectively solving problems in competitive programming, as they allow you to store and manipulate data in various ways.",{"type":20,"tag":21,"props":372,"children":374},{"id":373},"assigning-data-types",[375],{"type":26,"value":376},"Assigning Data Types",{"type":20,"tag":29,"props":378,"children":379},{},[380],{"type":26,"value":381},"You can assign values to variables of different data types in Python. Here are some examples:",{"type":20,"tag":35,"props":383,"children":385},{"id":384},"assigning-numeric-types",[386],{"type":26,"value":387},"Assigning Numeric Types",{"type":20,"tag":389,"props":390,"children":393},"pre",{"className":391,"code":392,"language":12,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","x = 10  # int\ny = 3.14  # float\nz = 1 + 2j  # complex\n",[394],{"type":20,"tag":50,"props":395,"children":396},{"__ignoreMap":8},[397,427,449],{"type":20,"tag":398,"props":399,"children":402},"span",{"class":400,"line":401},"line",1,[403,409,415,421],{"type":20,"tag":398,"props":404,"children":406},{"style":405},"--shiki-default:#24292E;--shiki-dark:#E1E4E8",[407],{"type":26,"value":408},"x ",{"type":20,"tag":398,"props":410,"children":412},{"style":411},"--shiki-default:#D73A49;--shiki-dark:#F97583",[413],{"type":26,"value":414},"=",{"type":20,"tag":398,"props":416,"children":418},{"style":417},"--shiki-default:#005CC5;--shiki-dark:#79B8FF",[419],{"type":26,"value":420}," 10",{"type":20,"tag":398,"props":422,"children":424},{"style":423},"--shiki-default:#6A737D;--shiki-dark:#6A737D",[425],{"type":26,"value":426},"  # int\n",{"type":20,"tag":398,"props":428,"children":429},{"class":400,"line":15},[430,435,439,444],{"type":20,"tag":398,"props":431,"children":432},{"style":405},[433],{"type":26,"value":434},"y ",{"type":20,"tag":398,"props":436,"children":437},{"style":411},[438],{"type":26,"value":414},{"type":20,"tag":398,"props":440,"children":441},{"style":417},[442],{"type":26,"value":443}," 3.14",{"type":20,"tag":398,"props":445,"children":446},{"style":423},[447],{"type":26,"value":448},"  # float\n",{"type":20,"tag":398,"props":450,"children":452},{"class":400,"line":451},3,[453,458,462,467,472,477,482],{"type":20,"tag":398,"props":454,"children":455},{"style":405},[456],{"type":26,"value":457},"z ",{"type":20,"tag":398,"props":459,"children":460},{"style":411},[461],{"type":26,"value":414},{"type":20,"tag":398,"props":463,"children":464},{"style":417},[465],{"type":26,"value":466}," 1",{"type":20,"tag":398,"props":468,"children":469},{"style":411},[470],{"type":26,"value":471}," +",{"type":20,"tag":398,"props":473,"children":474},{"style":417},[475],{"type":26,"value":476}," 2",{"type":20,"tag":398,"props":478,"children":479},{"style":411},[480],{"type":26,"value":481},"j",{"type":20,"tag":398,"props":483,"children":484},{"style":423},[485],{"type":26,"value":486},"  # complex\n",{"type":20,"tag":35,"props":488,"children":490},{"id":489},"assigning-sequence-types",[491],{"type":26,"value":492},"Assigning Sequence Types",{"type":20,"tag":389,"props":494,"children":496},{"className":391,"code":495,"language":12,"meta":8,"style":8},"my_list = [1, 2, 3]  # list\nmy_tuple = (1, 2, 3)  # tuple\nmy_range = range(1, 10)  # range\nmy_string = \"Hello\"  # str\n",[497],{"type":20,"tag":50,"props":498,"children":499},{"__ignoreMap":8},[500,551,598,642],{"type":20,"tag":398,"props":501,"children":502},{"class":400,"line":401},[503,508,512,517,522,527,532,536,541,546],{"type":20,"tag":398,"props":504,"children":505},{"style":405},[506],{"type":26,"value":507},"my_list ",{"type":20,"tag":398,"props":509,"children":510},{"style":411},[511],{"type":26,"value":414},{"type":20,"tag":398,"props":513,"children":514},{"style":405},[515],{"type":26,"value":516}," [",{"type":20,"tag":398,"props":518,"children":519},{"style":417},[520],{"type":26,"value":521},"1",{"type":20,"tag":398,"props":523,"children":524},{"style":405},[525],{"type":26,"value":526},", ",{"type":20,"tag":398,"props":528,"children":529},{"style":417},[530],{"type":26,"value":531},"2",{"type":20,"tag":398,"props":533,"children":534},{"style":405},[535],{"type":26,"value":526},{"type":20,"tag":398,"props":537,"children":538},{"style":417},[539],{"type":26,"value":540},"3",{"type":20,"tag":398,"props":542,"children":543},{"style":405},[544],{"type":26,"value":545},"]  ",{"type":20,"tag":398,"props":547,"children":548},{"style":423},[549],{"type":26,"value":550},"# list\n",{"type":20,"tag":398,"props":552,"children":553},{"class":400,"line":15},[554,559,563,568,572,576,580,584,588,593],{"type":20,"tag":398,"props":555,"children":556},{"style":405},[557],{"type":26,"value":558},"my_tuple ",{"type":20,"tag":398,"props":560,"children":561},{"style":411},[562],{"type":26,"value":414},{"type":20,"tag":398,"props":564,"children":565},{"style":405},[566],{"type":26,"value":567}," (",{"type":20,"tag":398,"props":569,"children":570},{"style":417},[571],{"type":26,"value":521},{"type":20,"tag":398,"props":573,"children":574},{"style":405},[575],{"type":26,"value":526},{"type":20,"tag":398,"props":577,"children":578},{"style":417},[579],{"type":26,"value":531},{"type":20,"tag":398,"props":581,"children":582},{"style":405},[583],{"type":26,"value":526},{"type":20,"tag":398,"props":585,"children":586},{"style":417},[587],{"type":26,"value":540},{"type":20,"tag":398,"props":589,"children":590},{"style":405},[591],{"type":26,"value":592},")  ",{"type":20,"tag":398,"props":594,"children":595},{"style":423},[596],{"type":26,"value":597},"# tuple\n",{"type":20,"tag":398,"props":599,"children":600},{"class":400,"line":451},[601,606,610,615,620,624,628,633,637],{"type":20,"tag":398,"props":602,"children":603},{"style":405},[604],{"type":26,"value":605},"my_range ",{"type":20,"tag":398,"props":607,"children":608},{"style":411},[609],{"type":26,"value":414},{"type":20,"tag":398,"props":611,"children":612},{"style":417},[613],{"type":26,"value":614}," range",{"type":20,"tag":398,"props":616,"children":617},{"style":405},[618],{"type":26,"value":619},"(",{"type":20,"tag":398,"props":621,"children":622},{"style":417},[623],{"type":26,"value":521},{"type":20,"tag":398,"props":625,"children":626},{"style":405},[627],{"type":26,"value":526},{"type":20,"tag":398,"props":629,"children":630},{"style":417},[631],{"type":26,"value":632},"10",{"type":20,"tag":398,"props":634,"children":635},{"style":405},[636],{"type":26,"value":592},{"type":20,"tag":398,"props":638,"children":639},{"style":423},[640],{"type":26,"value":641},"# range\n",{"type":20,"tag":398,"props":643,"children":645},{"class":400,"line":644},4,[646,651,655,661],{"type":20,"tag":398,"props":647,"children":648},{"style":405},[649],{"type":26,"value":650},"my_string ",{"type":20,"tag":398,"props":652,"children":653},{"style":411},[654],{"type":26,"value":414},{"type":20,"tag":398,"props":656,"children":658},{"style":657},"--shiki-default:#032F62;--shiki-dark:#9ECBFF",[659],{"type":26,"value":660}," \"Hello\"",{"type":20,"tag":398,"props":662,"children":663},{"style":423},[664],{"type":26,"value":665},"  # str\n",{"type":20,"tag":35,"props":667,"children":669},{"id":668},"assigning-set-types",[670],{"type":26,"value":671},"Assigning Set Types",{"type":20,"tag":389,"props":673,"children":675},{"className":391,"code":674,"language":12,"meta":8,"style":8},"my_set = {1, 2, 3}  # set\nmy_frozenset = frozenset({1, 2, 3})  # frozenset\n",[676],{"type":20,"tag":50,"props":677,"children":678},{"__ignoreMap":8},[679,726],{"type":20,"tag":398,"props":680,"children":681},{"class":400,"line":401},[682,687,691,696,700,704,708,712,716,721],{"type":20,"tag":398,"props":683,"children":684},{"style":405},[685],{"type":26,"value":686},"my_set ",{"type":20,"tag":398,"props":688,"children":689},{"style":411},[690],{"type":26,"value":414},{"type":20,"tag":398,"props":692,"children":693},{"style":405},[694],{"type":26,"value":695}," {",{"type":20,"tag":398,"props":697,"children":698},{"style":417},[699],{"type":26,"value":521},{"type":20,"tag":398,"props":701,"children":702},{"style":405},[703],{"type":26,"value":526},{"type":20,"tag":398,"props":705,"children":706},{"style":417},[707],{"type":26,"value":531},{"type":20,"tag":398,"props":709,"children":710},{"style":405},[711],{"type":26,"value":526},{"type":20,"tag":398,"props":713,"children":714},{"style":417},[715],{"type":26,"value":540},{"type":20,"tag":398,"props":717,"children":718},{"style":405},[719],{"type":26,"value":720},"}  ",{"type":20,"tag":398,"props":722,"children":723},{"style":423},[724],{"type":26,"value":725},"# set\n",{"type":20,"tag":398,"props":727,"children":728},{"class":400,"line":15},[729,734,738,743,748,752,756,760,764,768,773],{"type":20,"tag":398,"props":730,"children":731},{"style":405},[732],{"type":26,"value":733},"my_frozenset ",{"type":20,"tag":398,"props":735,"children":736},{"style":411},[737],{"type":26,"value":414},{"type":20,"tag":398,"props":739,"children":740},{"style":417},[741],{"type":26,"value":742}," frozenset",{"type":20,"tag":398,"props":744,"children":745},{"style":405},[746],{"type":26,"value":747},"({",{"type":20,"tag":398,"props":749,"children":750},{"style":417},[751],{"type":26,"value":521},{"type":20,"tag":398,"props":753,"children":754},{"style":405},[755],{"type":26,"value":526},{"type":20,"tag":398,"props":757,"children":758},{"style":417},[759],{"type":26,"value":531},{"type":20,"tag":398,"props":761,"children":762},{"style":405},[763],{"type":26,"value":526},{"type":20,"tag":398,"props":765,"children":766},{"style":417},[767],{"type":26,"value":540},{"type":20,"tag":398,"props":769,"children":770},{"style":405},[771],{"type":26,"value":772},"})  ",{"type":20,"tag":398,"props":774,"children":775},{"style":423},[776],{"type":26,"value":777},"# frozenset\n",{"type":20,"tag":35,"props":779,"children":781},{"id":780},"assigning-mapping-types",[782],{"type":26,"value":783},"Assigning Mapping Types",{"type":20,"tag":389,"props":785,"children":787},{"className":391,"code":786,"language":12,"meta":8,"style":8},"my_dict = {'key1': 'value1', 'key2': 'value2'}  # dict\n",[788],{"type":20,"tag":50,"props":789,"children":790},{"__ignoreMap":8},[791],{"type":20,"tag":398,"props":792,"children":793},{"class":400,"line":401},[794,799,803,807,812,817,822,826,831,835,840,844],{"type":20,"tag":398,"props":795,"children":796},{"style":405},[797],{"type":26,"value":798},"my_dict ",{"type":20,"tag":398,"props":800,"children":801},{"style":411},[802],{"type":26,"value":414},{"type":20,"tag":398,"props":804,"children":805},{"style":405},[806],{"type":26,"value":695},{"type":20,"tag":398,"props":808,"children":809},{"style":657},[810],{"type":26,"value":811},"'key1'",{"type":20,"tag":398,"props":813,"children":814},{"style":405},[815],{"type":26,"value":816},": ",{"type":20,"tag":398,"props":818,"children":819},{"style":657},[820],{"type":26,"value":821},"'value1'",{"type":20,"tag":398,"props":823,"children":824},{"style":405},[825],{"type":26,"value":526},{"type":20,"tag":398,"props":827,"children":828},{"style":657},[829],{"type":26,"value":830},"'key2'",{"type":20,"tag":398,"props":832,"children":833},{"style":405},[834],{"type":26,"value":816},{"type":20,"tag":398,"props":836,"children":837},{"style":657},[838],{"type":26,"value":839},"'value2'",{"type":20,"tag":398,"props":841,"children":842},{"style":405},[843],{"type":26,"value":720},{"type":20,"tag":398,"props":845,"children":846},{"style":423},[847],{"type":26,"value":848},"# dict\n",{"type":20,"tag":35,"props":850,"children":852},{"id":851},"assigning-boolean-type",[853],{"type":26,"value":854},"Assigning Boolean Type",{"type":20,"tag":389,"props":856,"children":858},{"className":391,"code":857,"language":12,"meta":8,"style":8},"is_valid = True  # bool\n",[859],{"type":20,"tag":50,"props":860,"children":861},{"__ignoreMap":8},[862],{"type":20,"tag":398,"props":863,"children":864},{"class":400,"line":401},[865,870,874,879],{"type":20,"tag":398,"props":866,"children":867},{"style":405},[868],{"type":26,"value":869},"is_valid ",{"type":20,"tag":398,"props":871,"children":872},{"style":411},[873],{"type":26,"value":414},{"type":20,"tag":398,"props":875,"children":876},{"style":417},[877],{"type":26,"value":878}," True",{"type":20,"tag":398,"props":880,"children":881},{"style":423},[882],{"type":26,"value":883},"  # bool\n",{"type":20,"tag":35,"props":885,"children":887},{"id":886},"assigning-none-type",[888],{"type":26,"value":889},"Assigning None Type",{"type":20,"tag":389,"props":891,"children":893},{"className":391,"code":892,"language":12,"meta":8,"style":8},"result = None  # NoneType\n",[894],{"type":20,"tag":50,"props":895,"children":896},{"__ignoreMap":8},[897],{"type":20,"tag":398,"props":898,"children":899},{"class":400,"line":401},[900,905,909,914],{"type":20,"tag":398,"props":901,"children":902},{"style":405},[903],{"type":26,"value":904},"result ",{"type":20,"tag":398,"props":906,"children":907},{"style":411},[908],{"type":26,"value":414},{"type":20,"tag":398,"props":910,"children":911},{"style":417},[912],{"type":26,"value":913}," None",{"type":20,"tag":398,"props":915,"children":916},{"style":423},[917],{"type":26,"value":918},"  # NoneType\n",{"type":20,"tag":35,"props":920,"children":922},{"id":921},"assigning-other-types",[923],{"type":26,"value":924},"Assigning Other Types",{"type":20,"tag":389,"props":926,"children":928},{"className":391,"code":927,"language":12,"meta":8,"style":8},"my_bytes = b'Hello'  # bytes\nmy_bytearray = bytearray(b'Hello')  # bytearray\nmy_memoryview = memoryview(b'Hello')  # memoryview\n",[929],{"type":20,"tag":50,"props":930,"children":931},{"__ignoreMap":8},[932,959,998],{"type":20,"tag":398,"props":933,"children":934},{"class":400,"line":401},[935,940,944,949,954],{"type":20,"tag":398,"props":936,"children":937},{"style":405},[938],{"type":26,"value":939},"my_bytes ",{"type":20,"tag":398,"props":941,"children":942},{"style":411},[943],{"type":26,"value":414},{"type":20,"tag":398,"props":945,"children":946},{"style":411},[947],{"type":26,"value":948}," b",{"type":20,"tag":398,"props":950,"children":951},{"style":657},[952],{"type":26,"value":953},"'Hello'",{"type":20,"tag":398,"props":955,"children":956},{"style":423},[957],{"type":26,"value":958},"  # bytes\n",{"type":20,"tag":398,"props":960,"children":961},{"class":400,"line":15},[962,967,971,976,980,985,989,993],{"type":20,"tag":398,"props":963,"children":964},{"style":405},[965],{"type":26,"value":966},"my_bytearray ",{"type":20,"tag":398,"props":968,"children":969},{"style":411},[970],{"type":26,"value":414},{"type":20,"tag":398,"props":972,"children":973},{"style":417},[974],{"type":26,"value":975}," bytearray",{"type":20,"tag":398,"props":977,"children":978},{"style":405},[979],{"type":26,"value":619},{"type":20,"tag":398,"props":981,"children":982},{"style":411},[983],{"type":26,"value":984},"b",{"type":20,"tag":398,"props":986,"children":987},{"style":657},[988],{"type":26,"value":953},{"type":20,"tag":398,"props":990,"children":991},{"style":405},[992],{"type":26,"value":592},{"type":20,"tag":398,"props":994,"children":995},{"style":423},[996],{"type":26,"value":997},"# bytearray\n",{"type":20,"tag":398,"props":999,"children":1000},{"class":400,"line":451},[1001,1006,1010,1015,1019,1023,1027,1031],{"type":20,"tag":398,"props":1002,"children":1003},{"style":405},[1004],{"type":26,"value":1005},"my_memoryview ",{"type":20,"tag":398,"props":1007,"children":1008},{"style":411},[1009],{"type":26,"value":414},{"type":20,"tag":398,"props":1011,"children":1012},{"style":417},[1013],{"type":26,"value":1014}," memoryview",{"type":20,"tag":398,"props":1016,"children":1017},{"style":405},[1018],{"type":26,"value":619},{"type":20,"tag":398,"props":1020,"children":1021},{"style":411},[1022],{"type":26,"value":984},{"type":20,"tag":398,"props":1024,"children":1025},{"style":657},[1026],{"type":26,"value":953},{"type":20,"tag":398,"props":1028,"children":1029},{"style":405},[1030],{"type":26,"value":592},{"type":20,"tag":398,"props":1032,"children":1033},{"style":423},[1034],{"type":26,"value":1035},"# memoryview\n",{"type":20,"tag":29,"props":1037,"children":1038},{},[1039],{"type":26,"value":1040},"Understanding how to use these data types and assign values to them is essential for solving problems efficiently in competitive programming. Each data type has its own set of operations and methods that can be utilized to manipulate data effectively.",{"type":20,"tag":1042,"props":1043,"children":1044},"style",{},[1045],{"type":26,"value":1046},"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":451,"depth":451,"links":1048},[1049,1058],{"id":23,"depth":15,"text":27,"children":1050},[1051,1052,1053,1054,1055,1056,1057],{"id":37,"depth":451,"text":40},{"id":94,"depth":451,"text":97},{"id":171,"depth":451,"text":174},{"id":214,"depth":451,"text":217},{"id":240,"depth":451,"text":243},{"id":282,"depth":451,"text":285},{"id":308,"depth":451,"text":311},{"id":373,"depth":15,"text":376,"children":1059},[1060,1061,1062,1063,1064,1065,1066],{"id":384,"depth":451,"text":387},{"id":489,"depth":451,"text":492},{"id":668,"depth":451,"text":671},{"id":780,"depth":451,"text":783},{"id":851,"depth":451,"text":854},{"id":886,"depth":451,"text":889},{"id":921,"depth":451,"text":924},"markdown","content:data-structure-algorithm:data-type.md","content","data-structure-algorithm\u002Fdata-type.md","data-structure-algorithm\u002Fdata-type","md",[1074,1082,1089,1094,1099,1108,1113,1118,1123,1128,1137,1143,1148,1153,1158,1163,1168,1174,1182,1190,1196,1203,1209,1216,1222,1228,1236,1242,1248,1255,1261,1267,1274,1286,1292,1297],{"_path":1075,"title":1076,"description":1077,"tags":1078,"date":1081},"\u002Fcpp","C++ \u002F CPP","C++ notes, snippets, and references",[1079,1080],"cpp","c++","2026-05-05",{"_path":1083,"title":1084,"description":1085,"tags":1086,"date":1088},"\u002Fdata-structure-algorithm\u002Farray-manipulation\u002Ffor-looping","For Looping in Python","Using for loops to manipulate arrays in Python.",[12,13,1087],"arrays","2026-03-18",{"_path":1090,"title":1091,"description":1092,"tags":1093,"date":1088},"\u002Fdata-structure-algorithm\u002Farray-manipulation\u002Fwhile-looping","While Looping in Python","Using while loops to manipulate arrays in Python.",[12,13,1087],{"_path":1095,"title":1096,"description":1097,"tags":1098,"date":14},"\u002Fdata-structure-algorithm\u002Fassignments","Assignments","Assignments in Python for competitive programming.",[12,13],{"_path":1100,"title":1101,"description":1102,"tags":1103,"date":1107},"\u002Fdata-structure-algorithm\u002Fbuzzword","Buzzword List DSA","Common terms and concepts in data structures and algorithms.",[1104,1105,1106],"dsa","algorithms","data-structures","2026-04-03",{"_path":1109,"title":1110,"description":1111,"tags":1112,"date":14},"\u002Fdata-structure-algorithm\u002Fhash-map","Hash Map","Hash map implementation in Python for competitive programming.",[12,13],{"_path":1114,"title":1115,"description":1116,"tags":1117,"date":14},"\u002Fdata-structure-algorithm\u002Finput-output","Input and Output","Handling input and output in Python for competitive programming.",[12,13],{"_path":1119,"title":1120,"description":1121,"tags":1122,"date":1088},"\u002Fdata-structure-algorithm\u002Fmath-library\u002Fsum","Sum Elements","Using for loops to sum elements in Python.",[12,13,1087],{"_path":1124,"title":1125,"description":1126,"tags":1127,"date":1088},"\u002Fdata-structure-algorithm\u002Fmath-library\u002Fsummary","Summary","Summary of the math library in Python.",[12,13,1087],{"_path":1129,"title":1130,"description":1131,"tags":1132,"date":1136},"\u002Fdocker\u002Fcheat-sheets","Docker Cheat Sheets","Cheat sheets for frequently used Docker commands and concepts",[1133,1134,1135],"docker","devops","infrastructure","2026-05-01",{"_path":1138,"title":1139,"description":1140,"tags":1141,"date":1142},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-container","Docker Container","Introduction to Docker containers and their usage",[1133,1134,1135],"2026-03-12",{"_path":1144,"title":1145,"description":1146,"tags":1147,"date":1142},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-execution","Docker Execution","Introduction to Docker execution and their usage",[1133,1134,1135],{"_path":1149,"title":1150,"description":1151,"tags":1152,"date":1142},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-image","Docker Image","Introduction to Docker images and their usage",[1133,1134,1135],{"_path":1154,"title":1155,"description":1156,"tags":1157,"date":1142},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-logging","Docker Logging","Introduction to Docker logging and their usage",[1133,1134,1135],{"_path":1159,"title":1160,"description":1161,"tags":1162,"date":1142},"\u002Fdocker\u002Fdocker-prerequisites\u002Fdocker-installation","Docker Installation","Introduction to Docker installation and their usage",[1133,1134,1135],{"_path":1164,"title":1165,"description":1166,"tags":1167,"date":1142},"\u002Fdocker\u002Fresources","Docker Resources","Collection of Docker resources for learning and reference",[1133,1134,1135],{"_path":1169,"title":1170,"description":1171,"tags":1172,"date":1081},"\u002Fjava","Java","Java notes, snippets, and references",[1173],"java",{"_path":1175,"title":1176,"description":1177,"tags":1178,"date":1142},"\u002Fjavascript\u002Fpromises","Promise Patterns","Common JavaScript promise patterns and async\u002Fawait usage",[1179,1180,1181],"javascript","frontend","async",{"_path":1183,"title":1184,"description":1185,"tags":1186,"date":1081},"\u002Fjenkins","Jenkins","Jenkins notes, snippets, and references",[1187,1188,1189],"jenkins","ci","cd",{"_path":1191,"title":1192,"description":1193,"tags":1194,"date":1088},"\u002Fphp\u002Farrays","PHP Array Functions","Essential PHP array functions and patterns",[1195,13,1087],"php",{"_path":1197,"title":1198,"description":1199,"tags":1200,"date":1202},"\u002Fphp\u002Fpatterns\u002Fsingleton","Singleton Pattern","Implementing the singleton pattern in PHP",[1195,1201,13],"patterns","2026-03-13",{"_path":1204,"title":1205,"description":1206,"tags":1207,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Farray-map","PHP Array and Map","Essential PHP array and map functions and their usage",[1195,13,1087],"2026-05-30",{"_path":1210,"title":1211,"description":1212,"tags":1213,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Fcasting-convertions","PHP Casting and Conversions","Learning about PHP casting and conversions",[1195,13,1214,1215],"casting","conversions",{"_path":1217,"title":1218,"description":1219,"tags":1220,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Fcomments","PHP Comments","Essential PHP comment operations",[1195,13,1221],"comments",{"_path":1223,"title":1224,"description":1225,"tags":1226,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Fdatatypes","PHP Data Types","Essential PHP data types and their usage",[1195,13,1227],"data types",{"_path":1229,"title":1230,"description":1231,"tags":1232,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Fexpression-statement-block","PHP Expressions, Statements, and Blocks","Essential PHP expressions, statements, and blocks",[1195,13,1233,1234,1235],"expressions","statements","blocks",{"_path":1237,"title":1238,"description":1239,"tags":1240,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Fflow-control","PHP Flow Control","Essential PHP flow control structures and patterns",[1195,13,1241],"flow control",{"_path":1243,"title":1244,"description":1245,"tags":1246,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Ffunctions","PHP Functions","Essential PHP functions and their usage",[1195,13,1247],"functions",{"_path":1249,"title":1250,"description":1251,"tags":1252,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Finclude-require","PHP Include and Require","Understanding PHP include and require statements",[1195,13,1253,1254],"include","require",{"_path":1256,"title":1257,"description":1258,"tags":1259,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Fintroduction","PHP Introduction","An introduction to PHP programming language and its fundamentals",[1195,13,1260],"introduction",{"_path":1262,"title":1263,"description":1264,"tags":1265,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Foperator","PHP Operators","Essential PHP operators and their usage",[1195,13,1266],"operators",{"_path":1268,"title":1269,"description":1270,"tags":1271,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Foutput-input","PHP Output & Input","Learning about PHP output and input methods",[1195,13,1272,1273],"output","input",{"_path":1275,"title":1276,"description":1277,"tags":1278,"date":1208},"\u002Fphp\u002Fphp-fundamental\u002Fvariables","PHP Variables","Essential PHP variables, constants, magic constants, and variable scope",[1195,13,1279,1280,1281,1282,1283,1284,1285],"variables","constants","magic constants","scope","global","local","static",{"_path":1287,"title":1288,"description":1289,"tags":1290,"date":1291},"\u002Fphp\u002Freferences","PHP References (&)","Useful PHP reference snippets and patterns",[1195,13],"2026-03-19",{"_path":1293,"title":1294,"description":1295,"tags":1296,"date":1081},"\u002Fpython","Python","Python notes, snippets, and references",[12],{"_path":1298,"title":1299,"description":1300,"tags":1301,"date":1081},"\u002Frust","Rust","Rust notes, snippets, and references",[1302],"rust",[1304,1305,1307,1308,1309,1310,1311,1312,1313,1315,1316,1318,1319,1321,1323,1325,1326,1327,1328,1329,1330,1331,1332,1334,1336,1337,1339,1341,1342,1344,1346,1347,1349,1350,1351,1352,1353],{"_path":1075,"title":1076,"weight":401},{"_path":1083,"title":1084,"weight":1306},10,{"_path":1090,"title":1091,"weight":1306},{"_path":1095,"title":1096,"weight":451},{"_path":1100,"title":1101,"weight":401},{"_path":5,"title":9,"weight":15},{"_path":1109,"title":1110,"weight":1306},{"_path":1114,"title":1115,"weight":401},{"_path":1119,"title":1120,"weight":1314},20,{"_path":1124,"title":1125,"weight":1306},{"_path":1129,"title":1130,"weight":1317},100,{"_path":1138,"title":1139,"weight":1314},{"_path":1144,"title":1145,"weight":1320},22,{"_path":1149,"title":1150,"weight":1322},21,{"_path":1154,"title":1155,"weight":1324},23,{"_path":1159,"title":1160,"weight":1306},{"_path":1164,"title":1165,"weight":401},{"_path":1169,"title":1170,"weight":401},{"_path":1175,"title":1176},{"_path":1183,"title":1184,"weight":401},{"_path":1191,"title":1192,"weight":401},{"_path":1197,"title":1198},{"_path":1204,"title":1205,"weight":1333},9,{"_path":1210,"title":1211,"weight":1335},6,{"_path":1217,"title":1218,"weight":451},{"_path":1223,"title":1224,"weight":1338},5,{"_path":1229,"title":1230,"weight":1340},8,{"_path":1237,"title":1238,"weight":1306},{"_path":1243,"title":1244,"weight":1343},11,{"_path":1249,"title":1250,"weight":1345},12,{"_path":1256,"title":1257,"weight":401},{"_path":1262,"title":1263,"weight":1348},7,{"_path":1268,"title":1269,"weight":15},{"_path":1275,"title":1276,"weight":644},{"_path":1287,"title":1288,"weight":15},{"_path":1293,"title":1294,"weight":401},{"_path":1298,"title":1299,"weight":401},1780160028951]