Lipotso tsa Puisano ea Citadel

Lipotso tsa Citadel Array

Potso ea 1. Tharollo ea Leetcode ea Metsi a ho Tlisa Pula Polelo ea Bothata The Trapping Rain Water LeetCode Solution - "Trapping Rain Water" e bolela hore ho fanoe ka lethathamo la libaka tse phahameng tse emelang 'mapa oa bophahamo moo bophara ba bar e' ngoe le e 'ngoe e leng 1. Re hloka ho fumana palo ea metsi a qabeletsoeng ka mor'a pula. Mohlala: Kenyo: bophahamo = [0,1,0,2,1,0,1,3,2,1,2,1] Sephetho: 6 Tlhaloso: Sheba ...

Bala haholoanyane

Potso ea 2. Phetoho ea Chelete ea 2 Tharollo ea Leetcode Polelo ea Bothata Phetoho ea Chelete ea Lichelete 2 Tharollo ea LeetCode - "Chelete ea Chelete ea Chelete ea 2" e bolela hore ho fanoe ka mefuta e mengata ea lichelete tsa tšepe tse fapaneng le palo e feletseng, e emelang chelete eohle. Re hloka ho khutlisa palo ea palo eohle ea metsoako e fapaneng e ka bang teng ho palo eo. ...

Bala haholoanyane

Potso ea 3. Palo ea lipara tse nang le likarolo tse lekanang ka tatellano Ha re re re fane ka lenane le lekaneng. Bothata "Palo ea lipara tsa li-index tse nang le likarolo tse lekanang ka tatellano" e kopa ho fumana che ea li-indices (i, j) ka tsela eo arr [i] = arr [j] mme ke sa lekana le j . Mohlala arr [] = {2,3,1,2,3,1,4} 3 Tlhaloso lipara ...

Bala haholoanyane

Potso ea 4. Letoto le lelelele ka ho fetesisa le se nang likarolo tse fetang K tse ikhethang Bothata "Larolo e telele ka ho fetesisa e se nang likarolo tse fetang K tse fapaneng" e re ha re re o na le linomoro tse ngata, polelo ea bothata e kopa ho fumana mofuta o molelele ka ho fetesisa o se nang boholo bo fetang ba likarolo tse fapaneng tsa k. Mohlala arr [] = {4, 3, 5, 2, 1, 2, 0, 4, 5} ...

Bala haholoanyane

Potso ea 5. Tshebetso e nyane ho etsa hore likarolo tsohle li lekane ka tatellano Bothata "Ts'ebetso e nyane ea ho etsa hore likarolo tsohle li lekane ka tatellano" e re o fuoe lethathamo le nang le linomoro tse ling ho lona. U tlameha ho fumana lits'ebetso tse tlase tse ka etsoang ho etsa sehlopha se lekanang. Mohlala [1,3,2,4,1] 3 Tlhaloso Ebang ho tlosoa ho 3 ho ka ba ...

Bala haholoanyane

Potso ea 6. Phapang lipakeng tsa maqhubu a phahameng le a manyane ka bongata Bothata "Phapang lipakeng tsa maqhubu a phahameng ka ho fetisisa le a manyane ka tatellano" e re re nahana hore o na le lenane le lekaneng. Polelo ea bothata e botsa ho fumana phapang e kholo lipakeng tsa maqhubu a phahameng ka ho fetisisa le makhetlo a tlase ka ho fetisisa a linomoro tse peli tse arohaneng ka tatellano. Mohlala arr [] = {1, 2, 3, ...

Bala haholoanyane

Potso ea 7. k-th e sieo ka tatellano e ntseng e eketseha e seng teng ka tatellano e fanoeng Bothata "k-th e haellang ea tatellano e ntseng e eketseha e seng teng ka tatellano e fanoeng" e re o fuoe likarolo tse peli. E 'ngoe ea tsona e hlophisitsoe ka tatellano e nyolohang le e' ngoe e tloaelehileng e sa hlophisoang ka palo k. Fumana kth element e sieo e seng teng ka mokhoa o tloaelehileng ...

Bala haholoanyane

Potso ea 8. Lekola hore na sehlopha se fanoeng se na le likarolo tse kopitsoang tse ka bang hole le tse ling Bothata "Hlahloba hore na sehlopha se fanoeng se na le likarolo tse ikopantseng tse ka bang hole le tse ling" se re re tlameha ho lekola likopi tse fumanehang ka har'a mefuta e sa lekanyetsoang ea k. Mona boleng ba k bo nyane ho feta sehlopha se fanoeng. Mehlala K = 3 arr [] = ...

Bala haholoanyane

Potso ea 9. Fumana lipara tsohle (a, b) ka tatellano hoo% b = k Polelo ea Bothata Bothata "Fumana lipara tsohle (a, b) ka tatellano hore% b = k" e re o fuoe palo ea linomoro le boleng bo felletseng bo bitsoang k. Polelo ea mathata e kopa ho fumana batho bao ka tsela eo x ...

Bala haholoanyane

Potso ea 10. Lipotso tse mabapi le XOR tsa selelekisi se sa tloaelehang ka ho fetisisa se fapaneng Polelo ea Bothata Bothata "Queries on XOR of the most oddor divisor of the range" e re o filoe lethathamo la lipotso tse ngata, 'me potso ka' ngoe e na le mokoloko. Polelo ea bothata e kopa ho fumana XOR ea sekhahla se makatsang ka ho fetesisa kahara sebaka se fanoeng ...

Bala haholoanyane

Potso ea 11. Litsela tse tharo tsa ho arola mefuta e mengata ho potoloha sebaka se fanoeng Polelo ea Bothata O fuoa linomoro tse ngata le lenane la lowValue le highValue. Bothata "Likarolo tse tharo tsa karohano ea sehlopha ho potoloha le mefuta e fanoeng" bo kopa ho arola mefuta e mengata e joalo e tla aroloa likarolo tse tharo. Likarolo tsa likarolo li tla ba: Elements ...

Bala haholoanyane

Potso ea 12. Tlosa litekanyetso tse peli tse latellanang tse lekanang ka e kholo Tlhaloso ea Bothata Ha re re u na le lenane le le leng. Bothata "Tlosa litekanyetso tse peli tse latellanang tse lekanang ka e kholo" ho kopa ho khutlisa litekanyetso tsohle tsa para li re 'a' e tlang ka tatellano ka palo "a + 1" 1 e kholo ho li feta (linomoro tse peli tse latellanang), joalo ka hore le kamora phetoho kapa ho ipheta moo ...

Bala haholoanyane

Potso ea 13. Fumana tatellano e hlophisitsoeng ea boholo ba 3 ka nako e lekanang Polelo ea Bothata Bothata "Fumana tatellano e hlophisitsoeng ea boholo ba 3 ka nako e lekanang" e re o na le lenane le le leng. Polelo ea bothata e kopa ho fumana linomoro tse tharo ka tsela eo li hlophisang [i] <array [k] <array [k], le i <j <k. Mohlala arr [] ...

Bala haholoanyane

Potso ea 14. Hlophisa tatellano ka tatellano - e nyane haholo, kholo ka ho fetisisa, ea bobeli e nyane, ea bobeli e kholo Tlhaloso ea Bothata Ha re re u na le lenane le le leng. Bothata "hlophisa tatellano ka tatellano - e nyane haholo, kholo ka ho fetisisa, ea bobeli e nyane, ea bobeli e kholo, .." e kopa ho hlophisa mabotho ka tsela eo palo e nyane haholo e tlang pele ebe e latelang ea bobeli, ebe ea bobeli e nyane ebe ea bobeli ...

Bala haholoanyane

Potso ea 15. Bala lipara ho tloha likarolong tse peli tse hlophisitsoeng tseo palo ea tsona e lekanang le boleng bo fanoeng x Polelo ea Bothata "Bala lipara tse tsoang likarolong tse peli tse hlophiloeng tseo chelete ea tsona e lekanang le boleng bo fanoeng x" bothata bo re o fuoa lihlopha tse peli tse hlophisitsoeng tsa linomoro le palo e felletseng e bitsoang kakaretso. Polelo ea mathata e kopa ho fumana palo ea lipara tse akaretsang ho ...

Bala haholoanyane

Potso ea 16. Mabokose a hatisang Bothateng ba ho Atisa Chain ea Matrix Polelo ea Bothata Re hloka ho fumana tatellano ea ho atisoa ha matriki hore palo ea ts'ebetso e amehang katisong ea matriki kaofela e fokotsehe. Ebe re hloka ho hatisa odara ena ke hore, ha re hatisa masakaneng bothateng ba katiso ea liketane tsa matrix. Nahana hore o na le litlelase tse 3 A, B, ...

Bala haholoanyane

Potso ea 17. Kenya Tlosa GetRandom Ho Kenyeletsa Tlosa bothata ba GetRandom re hloka ho rala sebopeho sa data se ts'ehetsang lits'ebetso tsohle tse latelang ka nako ea O (1). kenya (val): E kenya ntho val ho sete haeba e se e ntse e le teng. tlosa (val): E tlosa ntho ea boleng ho sete haeba e le teng. getRandom: E khutlisa ntho e sa reroang ho tloha sethaleng sa hona joale ...

Bala haholoanyane

Potso ea 18. Keketseho ea Ts'ebetso ea Bolelele ba Boraro le Sehlahisoa se Boholo Polelo ea Bothata Bothateng ba "Keketseho e latelang ea bolelele ba boraro ka sehlahisoa se phahameng", re fane ka lethathamo la linomoro tse nepahetseng. Fumana tatellano ea bolelele ba 3 ka sehlahisoa se phahameng. Tse latelang li lokela ho eketseha. Fomate ea ho kenya: Mohala oa pele le o le mong feela o nang le palo e kholo ea N e bonts'a boholo ...

Bala haholoanyane

Potso ea 19. Fumana Palo e Phethahetseng e Phethahetseng ho Array Polelo ea Bothata Bothateng ba "Fumana Palo e Phethahetseng e Phethahetseng ka Lethathamo" re fane ka mefuta e sa lekanyetsoang ea boholo N. Re filoe mefuta e mengata e nang le linomoro tsa {0, k} moo k <= N. Fumana nomoro e tlang ka palo e holimo ea linako tse ngata ka tatellano. Sebopeho sa Input The ...

Bala haholoanyane

Potso ea 20. Palo ea Boraro-bo-bong e nang le Kakaretso e ka tlase ho Boleng bo Fuoeng Polelo ea Bothata Re fane ka lenane le nang le linomoro tsa N tse ngata. Lethathamong le fanoeng, bala palo ea mafahla a mararo ka chelete e ka tlase ho boleng bo fanoeng. Ho kenya mohlala a [] = {1, 2, 3, 4, 5, 6, 7, 8} Kakaretso = Liphetho tse 10 Tse ka bang teng tse tharo tse tharo ke tsena: ...

Bala haholoanyane

Potso ea 21. Fumana Triplet ka Lethathamo ka Kakaretso e Fuoeng Polelo ea Bothata Ha u fuoa mefuta e mengata ea linomoro, fumana motsoako oa likarolo tse tharo tsa lenane leo kakaretso ea lona e lekanang le boleng bo fanoeng X. Mona re tla hatisa motswako oa pele oo re o fumanang. Haeba ho se na kopano e joalo, hatisa -1. Ho kenya mohlala N = 5, X = 15 arr [] = ...

Bala haholoanyane

Potso ea 22. Ntho ea pele e pheta-phetoang Polelo ea Bothata Re fane ka lenane le nang le linomoro. Re tlameha ho fumana ntho ea pele e iphetang lethathamong le fanoeng. Haeba ho se na ntho e phetoang joale hatisa "Ha ho na palo e phetoang e fumanoeng". Tlhokomeliso: Lintho tse pheta-phetoang ke likarolo tse tlang hangata. (Lethathamo le kanna la ba le mafahla) ...

Bala haholoanyane

Potso ea 23. Sehlahisoa sa Array Puzzle Polelo ea Bothata Bothateng ba selotho se nang le lihlahisoa re hloka ho theha sehlopha moo karolo ea eona e tla ba sehlahisoa sa likarolo tsohle tse lenaneng le fanoeng ntle le karolo ea boemo ba eona. Keletso ea mohlala 5 10 3 5 6 2 Khumo 180 600 360 300 900 ...

Bala haholoanyane

Potso ea 24. Fumana nomoro ea pele e iphetang ka tatellano e fanoeng Polelo ea Bothata Ho ka ba le linomoro tse pheta-phetoang tse ngata ka bongata empa u tlameha ho fumana nomoro ea pele e pheta-phetoang ka tatellano e fanoeng (e hlahang ka lekhetlo la bobeli). Keketso ea Mohlala 12 5 4 2 8 9 7 12 5 6 12 4 7 Khumo ea 5 ke ntho ea pele e iphetang ...

Bala haholoanyane

Lipotso tsa Citadel String

Potso ea 25. Hlahloba hore na mela eohle ea Matrix ke e 'ngoe e chitja ka ho potoloha Polelo ea Bothata Bothateng ba "Hlahloba hore na Melao eohle ea Matrix ke Potoloho ea E 'ngoe le e' Ngoe" bothata boo re bo fileng char matrix, ngola lenaneo ho fumana hore na mela eohle ke e chitja ka ho potoloha kapa che. Haeba mela eohle e le mekoloko ea selikalikoe ea mong le e mong oa eona oa hatisoa

Bala haholoanyane

Potso ea 26. Bolelele ba nako e telele ka ho fetisisa e sebetsang Polelo ea Bothata Ho "Bolelele ba Nako e telele ka ho fetisisa e sebetsang" re fane ka khoele e nang le masakana a qalang le a koalang feela. Ngola lenaneo le tla fumana mohala oa khale ka ho fetisisa o nepahetseng. Fomate ea ho kenya: Mohala oa pele le o le mong feela o nang le khoele s. Sebopeho sa Phatlalatso ea Pele le ...

Bala haholoanyane

Lipotso tsa Sefate sa Citadel

Potso ea 27. Theha Sefate sa Binary ho Tsoa ho Inorder Inorder le Preorder Traversals Bothateng bona, re hlophisitse le ho hlophisa pele ho sefate sa binary. Re hloka ho aha sefate sa binary ho tsoa litselaneng tse fanoeng tsa Inorder le Preorder. Ho Kena ha Mohlala: Inorder = [D, B, E, A, F, C] Preorder = [A, B, D, E, C, F] Sephetho: Pele ho tšela sefate se entsoeng ke ...

Bala haholoanyane

Potso ea 28. Netefatsa Sefate sa Patlo ea Binary Bothata ba ho netefatsa Binary Search Tree bothata boo re bo fileng motso oa sefate, re tlameha ho sheba hore na ke sefate sa lipatlisiso tsa binary kapa che. Mohlala: Phatlalatso: Tlhaloso ea 'nete: Sefate se fanoeng ke sefate sa patlo sa binary hobane likarolo tsohle tse setseng ho karoloana e ngoe le e ngoe ...

Bala haholoanyane

Lipotso tsa Citadel Stack

Potso ea 29. Tharollo ea Leetcode ea Metsi a ho Tlisa Pula Polelo ea Bothata The Trapping Rain Water LeetCode Solution - "Trapping Rain Water" e bolela hore ho fanoe ka lethathamo la libaka tse phahameng tse emelang 'mapa oa bophahamo moo bophara ba bar e' ngoe le e 'ngoe e leng 1. Re hloka ho fumana palo ea metsi a qabeletsoeng ka mor'a pula. Mohlala: Kenyo: bophahamo = [0,1,0,2,1,0,1,3,2,1,2,1] Sephetho: 6 Tlhaloso: Sheba ...

Bala haholoanyane

Lipotso tsa Mohala oa Citadel

Potso ea 30. Mola o ka pele o sebelisa lenane le hokahaneng habeli Polelo ea Bothata Bothata "Lethathamo la lintho tse tlang pele pele le sebelisang lethathamo le kopantsoeng habeli" le kopa ho kenya tšebetsong mesebetsi e latelang ea lethathamo la tse tlang pele ka ho sebelisa lenane le hokahaneng habeli Push (x, p): Ngola ntlha ea x ka ntho e tlang pele holima lethathamo la maemo a pele sebakeng se loketseng. pop (): Tlosa 'me u khutlise ntho eo ka ho fetisisa pele ...

Bala haholoanyane

Lipotso tsa Citadel Matrix

Potso ea 31. Mabokose a hatisang Bothateng ba ho Atisa Chain ea Matrix Polelo ea Bothata Re hloka ho fumana tatellano ea ho atisoa ha matriki hore palo ea ts'ebetso e amehang katisong ea matriki kaofela e fokotsehe. Ebe re hloka ho hatisa odara ena ke hore, ha re hatisa masakaneng bothateng ba katiso ea liketane tsa matrix. Nahana hore o na le litlelase tse 3 A, B, ...

Bala haholoanyane

Potso ea 32. Hlahloba hore na mela eohle ea Matrix ke e 'ngoe e chitja ka ho potoloha Polelo ea Bothata Bothateng ba "Hlahloba hore na Melao eohle ea Matrix ke Potoloho ea E 'ngoe le e' Ngoe" bothata boo re bo fileng char matrix, ngola lenaneo ho fumana hore na mela eohle ke e chitja ka ho potoloha kapa che. Haeba mela eohle e le mekoloko ea selikalikoe ea mong le e mong oa eona oa hatisoa

Bala haholoanyane

Citadel Lipotso tse ling

Potso ea 33. Lekola Reverse Polish Notation LeetCode Tharollo Phatlalatso ea Bothata Lekola Reverse Polish Notation LeetCode Tharollo - Lekola boleng ba polelo ea lipalo ho Reverse Polish Notation. Basebelisi ba sebetsang ke +, -, *, le /. Operand ka 'ngoe e ka ba palo e felletseng kapa polelo e 'ngoe. Hlokomela hore karohano lipakeng tsa linomoro tse peli e tlameha ho fokotseha ho ea ho zero. E netefalitsoe hore e fanoeng ...

Bala haholoanyane

Potso ea 34. Nako e Thehiloeng ke Key-Boleng Store LeetCode Tharollo Polelo ea Bothata Nako e Thehiloeng Lebenkeleng la Bohlokoa LeetCode Tharollo - Etsa moralo oa data oa bohlokoa oa nako o ka bolokang litekanyetso tse ngata bakeng sa senotlolo se le seng ka litempe tsa nako tse fapaneng le ho fumana boleng ba senotlolo ka setempe se itseng sa nako. Kenya ts'ebetsong sehlopha sa TimeMap: TimeMap() E qala morero oa sebopeho sa data. void set(Senotlolo sa khoele, Khoele ...

Bala haholoanyane

Potso ea 35. Fumana Median ho tsoa ho Data Stream LeetCode Solution Phatlalatso ea Bothata Fumana Median ho tswa ho Data Stream LeetCode Tharollo - Bohareng ke boleng ba bohareng ba lenane la palo e hlophisitsoeng. Haeba boholo ba lenane bo lekana, ha ho na boleng bo bohareng 'me bohareng ke moelelo oa litekanyetso tse peli tse bohareng. Mohlala, bakeng sa arr = [2,3,4], median ...

Bala haholoanyane

Potso ea 36. Asteroid Collision LeetCode Tharollo Problem Statement Asteroid Collision LeetCode Solution - Re fuoa sehlopha sa linaleli sa linaleli tse emelang li-asteroid ka tatellano. Bakeng sa asteroid ka 'ngoe, boleng bo feletseng bo emela boholo ba eona, 'me letšoao le emela tataiso ea eona (moelelo o nepahetseng o nepahetseng, moelelo o fosahetseng o setseng). Asteroid ka 'ngoe e tsamaea ka lebelo le tšoanang. Fumana naha...

Bala haholoanyane

Potso ea 37. Kopanya le Deserialize Binary Tree LeetCode Tharollo Problem Statement Serialize and Deserialize Binary Tree LeetCode Solution - Serialization ke ts'ebetso ea ho fetolela sebopeho sa data kapa ntho hore e be tatellano ea likotoana e le hore e ka bolokoa faeleng kapa buffer ea memori, kapa e fetisetsoe ka har'a sehokelo sa khokahano ea marang-rang se tla tsosolosoa hamorao. ka...

Bala haholoanyane

Potso ea 38. Sehlahisoa sa Array Ntle le Tharollo ea Self LeetCode Sehlahisoa sa Bothata Sehlahisoa sa Array Ntle le Tharollo ea Self LeetCode - Ho fanoe ka palo e feletseng ea palo, khutlisetsa karabo e fapaneng hoo karabo[i] e lekanang le sehlahisoa sa likarolo tsohle tsa lipalo ntle le linomoro[i]. Sehlahisoa sa sehlongoapele leha e le sefe kapa sehlongoana sa linomoro se tiisitsoe hore se tla lekana palo e feletseng ea 32-bit. U tlameha ho ngola algorithm e tsamaeang ka nako ea O(n) ntle le ho sebelisa karohano ...

Bala haholoanyane

Potso ea 39. Kth Ntho e Nyane ka ho Fetisisa ka Tharollo ea Leetcode ea BST Polelo ea Bothata Kth Ntho e Nyenyane ka ho Fetisisa Tharollo ea Leetcode ea BST - Ho fanoe ka motso oa sefate sa lipatlisiso sa binary, le palo e feletseng ea k, khutlisetsa kth e nyenyane ka ho fetisisa (1-indexed) ea litekanyetso tsohle tsa li-node sefateng. Mehlala: Kenyeletso: motso = [3,1,4,null,2], k = 1 Output: 1 Input: root = [5,3,6,2,4,null,null,1], k ...

Bala haholoanyane

Potso ea 40. Ugly Number II Tharollo ea LeetCode Phatlalatso ea Bothata Nomoro e Mobe II Tharollo ea LeetCode - Nomoro e mpe ke palo e ntle eo lintlha tsa eona tsa mantlha li lekanyelitsoeng ho 2, 3, le 5. Ho fanoe ka palo e feletseng ea n, khutlisetsa nomoro ea nth e mpe. Kenyelletso: n = 10 Sephetho: 12 Tlhaloso: [1, 2, 3, 4, 5, 6, 8, 9, 10, 12] ke tatellano ea 10 ea pele ...

Bala haholoanyane

Potso ea 41. Integer Break LeetCode Tharollo Polelo ea Bothata Integer Break LeetCode Tharollo - Ho fanoe ka palo e feletseng n, e arole ka kakaretso ea k positive integers, moo k >= 2, 'me u eketse sehlahisoa sa linomoro tseo. Re hloka ho Khutlisa sehlahisoa se phahameng seo re ka se fumanang. Kenyelletso: n = 2 Sephetho: 1 Tlhaloso: 2 = 1 + 1, ...

Bala haholoanyane

Potso ea 42. Boholo ba Sehlahisoa sa Linomoro tse tharo Tharollo ea LeetCode Phatlalatso ea Bothata Boholo ba Sehlahisoa sa Linomoro Tse Tharo Tharollo ea LeetCode - Re fuoa mefuta e mengata, potso e re botsa hore re bale sehlahisoa se seholo sa linomoro leha e le life tsa 3. Mehlala Mohlala 1: Kenyeletso: dipalo = [1,2,3] Sephetho: 6 Mohlala 2: Moputso: dipalo = [1,2,3,4] Sephetho: 24 Mohlala 3: Sephetho: palo = ...

Bala haholoanyane

Potso ea 43. Lentsoe Ladder LeetCode Tharollo Polelo ea Bothata Lentsoe la Lere la LeetCode Tharollo - "Lere la Mantsoe" le bolela hore u fuoa khoele e qalangWord, string endWord, le wordList. Re hloka ho fumana bolelele bo bokhutšoane ba tatellano ea phetoho (haeba ho se na tsela e teng, hatisa 0) ho tloha StartWord to EndWord ho latela maemo a fanoeng: All the Intermediate Words should ...

Bala haholoanyane

Potso ea 44. Nako e Molemohali ea ho Reka le ho Rekisa Stock LeetCode Solution Polelo ea Bothata Nako e Molemohali ea ho Reka le ho Rekisa Stock LeetCode Tharollo - "Nako e Molemo ka ho Fetisisa ea ho Reka le ho Rekisa Stock" e bolela hore U fuoa lethathamo la litheko moo litheko[i] e leng theko ea thepa e fanoeng ka letsatsi la ith. U batla ho eketsa phaello ea hau ka ho khetha ...

Bala haholoanyane

Potso ea 45. Hatisa mantsoe a Newman-Conway Sequence Polelo ea Bothata Bothata "Print n terms of Newman-Conway Sequence" e re o fuoe palo e felletseng "n". Fumana mantsoe a pele a Newman-Conway Sequence ebe u a hatisa. Mohlala n = 6 1 1 2 2 3 4 Tlhaloso Mantsoe ohle a hatisitsoeng a latela tatellano ea Newman-Conway ...

Bala haholoanyane

Potso ea 46. Sliding Window Boholo Bothateng ba Sliding Window Maximum re fane ka li-nums, bakeng sa fensetere e 'ngoe le e' ngoe ea boholo ba k, fumana palo e phahameng ea fensetere. Mehlala ea ho kenya linomoro [] = {1,3, -1, -3,5,3,6,7} k = 3 Sephetho {3,3,5,5,6,7} Tlhaloso Mokhoa o sa Tsebeng oa ho Sliding Window Boholo Bakeng sa fensetere e 'ngoe le e' ngoe ea boholo ba k, e tšela ...

Bala haholoanyane

Potso ea 47. Ts'ebetsong ea LRU Cache Cache e sa tsoa sebelisoa (LRU) Cache ke mofuta oa mokhoa o sebelisetsoang ho boloka lintlha joalo hore nako e hlokahalang ea ho sebelisa data ke bonyane bo ka khonehang. LRU algorithm e sebelisitsoeng ha cache e tletse. Re tlosa lintlha tse sa tsoa sebelisoa habonolo mohopolong oa polokelo ea ...

Bala haholoanyane

Potso ea 48. Iketsetse 'me u nyenyefatse Sefate sa Binary Re fane ka sefate sa binary se nang le linomoro tsa N moo node ka 'ngoe e nang le boleng bo itseng. Re hloka ho etsa serialize le des desize sefate binary. SerializeTs'ebetso ea ho boloka sefate faeleng ntle le ho senya sebopeho sa eona e bitsoa serialization. Iketsetse le ho nyenyefatsa Sefate sa Binary Ts'ebetso ...

Bala haholoanyane

Translate »