Lipotso tsa Puisano ea Cisco

Lipotso tsa Puisano ea CiscoPin
Lipotso tsa Puisano ea Cisco

Lipotso tsa Cisco 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. Litsela Tse Ikhethang II Tharollo ea Leetcode Tlhaloso ea Bothata Litsela Tse Ikhethang II Tharollo ea LeetCode - "Litsela tse Ikhethang II" li bolela hore ho fanoe ka marang-rang a mxn moo roboto e qalang ho tloha ka holimo ho le letšehali la marang-rang. Re hloka ho fumana palo eohle ea litsela tsa ho fihla sekhutlong se ka tlase se letona sa marang-rang. ...

Bala haholoanyane

Potso ea 4. Tharollo ea Leetcode ea Nomoro e sieo Phatlalatso ea Bothata Tharollo ea Nomoro e Fokohileng ea LeetCode - "Nomoro e sieo" e bolela hore ho fanoe ka palo ea boholo ba n e nang le linomoro tse fapaneng pakeng tsa [0,n]. Re hloka ho khutlisa nomoro e sieo sebakeng sa marang-rang. Mohlala: Input: nums = [3,0,1] Output: 2 Tlhaloso: Re ka hlokomela ha bonolo hore tsohle ...

Bala haholoanyane

Potso ea 5. Boholo ba Tlatsetso ea Leetcode Tharollo Polelo ea Bothata Ha u fuoa linomoro tse ngata tse fapaneng, fumana sehlahisoa se kopaneng (se nang le bonyane palo e le 'ngoe) se nang le palo e kholo ka ho fetisisa ebe se khutlisa kakaretso ea sona. Mohlala nums = [-2,1, -3,4, -1,2,1, -5,4] 6 Tlhaloso: [4, -1,2,1] e na le kakaretso e kholo ka ho fetisisa = 6. nums = [- 1] -1 Atamela 1 (Arola le ho Hlōla) Ka mokhoa ona ...

Bala haholoanyane

Potso ea 6. Kopanya Tharollo ea Leetcode e hlophisitsoeng Bothateng ba "Merge Sorted Arrays", re fuoa mefuta e 'meli e hlophisitsoeng ka tatellano e sa theoheng. Sehlopha sa pele ha sea tlatsoa ka botlalo ebile se na le sebaka se lekaneng ho amohela likarolo tsohle tsa sehlopha sa bobeli. Re tlameha ho kopanya li-arrays tse peli, hore sehlopha sa pele se na le likarolo ...

Bala haholoanyane

Potso ea 7. Batla ka Tharollo ea Leetcode ea Arled Array Arched Nahana ka sehlopha se hlophisitsoeng empa ho ile ha khethoa index e le 'ngoe' me sehlopha sa potoloha ka nako eo. Joale, hang ha sehlopha se se se potolohiloe ho hlokahala hore u fumane ntho e ikhethileng ebe u khutlisa index ea eona. Haeba ho joalo, elemente ha e eo, khutla -1. Bothata ka kakaretso ke ...

Bala haholoanyane

Potso ea 8. Kakaretso ea f (a [i], a [j]) ho feta lipara tsohle ka bongata ba li-n Polelo ea bothata e kopa ho fumana kakaretso ea f (a [i], a [j]) ho feta lipara tsohle ka bongata ba linomoro ka tsela ea hore 1 <= i <j <= n re nahane hore re filoe mefuta e mengata ea linomoro. Mohlala arr [] = {1, 2, 3, ...

Bala haholoanyane

Potso ea 9. Fuoa lethathamo la lipara Fumana lipara tsohle tse lumellanang ho eona Fumana lipara tsohle tse lumellanang - U fuoa lipara tse fapaneng. U tlameha ho fumana lipara tse lumellanang ho eona. Ho thoe lipara tse lumellanang li lekana ha lihlopha li re (a, b) le (c, d) moo 'b' e lekanang le 'c' le 'a' ke ...

Bala haholoanyane

Potso ea 10. Bolelele ba sejana se seholohali se nang le likarolo tse ikopantseng Bothata "Bolelele ba subarray e kholo ka ho fetisisa e nang le likarolo tse ikopantseng" e re o fuoe lenane le le leng. Polelo ea bothata e kopa ho fumana bolelele ba sehlopha se selelele ka ho fetesisa sa likarolo tse ka hlophisoang ka tatellano (e tsoelang pele, ekaba ea nyoloha kapa e theoha). Linomoro ho ...

Bala haholoanyane

Potso ea 11. Bala palo ea makhetlo a mararo a nang le sehlahisoa se lekanang le nomoro e fanoeng Bothata "Palo ea palo ea tse tharo tse nang le sehlahisoa se lekanang le nomoro e fuoeng" e re re filoe palo e felletseng le palo m. Polelo ea bothata e kopa ho fumana palo e felletseng ea lihlahisoa tse tharo tse lekanang le sehlahisoa. Mohlala arr [] = {1,5,2,6,10,3} m = 30 3 Tlhaloso Tharo ...

Bala haholoanyane

Potso ea 12. Tsela e nang le karolelano ea boleng bo holimo Polelo ea Bothata Bothata "Tsela e nang le boleng bo holimo" e bolela hore o fuoe sehlopha sa 2D kapa palo ea linomoro. Joale nahana hore u eme ka seleng e kaholimo ho le letšehali 'me u hloka ho fihla tlase tlase. Bakeng sa ho fihla moo o yang teng, o hloka ho fetela pele ho ...

Bala haholoanyane

Potso ea 13. Hatisa mefuta e fetotsoeng kamora ho etsa litaelo tsa tlatsetso le ho tlosa U fuoa boholo ba boholo ba n, qalong litekanyetso tsohle tsa sehlopha e tla ba 0, le lipotso. Potso ka 'ngoe e na le litekanyetso tse' ne, mofuta oa potso T, ntlha e ka letsohong le letšehali la mokoloko, ntlha e nepahetseng ea moeli le nomoro ea k, u tlameha ho ...

Bala haholoanyane

Potso ea 14. Hlahloba ka palo ea binary palo e emeloang ke subarray e makatsa kapa ebile Bothata "Hlahloba ka palo ea binary palo e emeloang ke subarray ha e makatse kapa ebile" e bolela hore o fuoe mofuta oa binary le mefuta. Lenane le na le palo ka sebopeho sa 0 le 1s. Polelo ea bothata e kopa ho fumana palo e emetsoeng ...

Bala haholoanyane

Potso ea 15. Fumana hore na karoloana e nyane ea thaba kapa che Polelo ea Bothata Bothata "Fumana hore na subarray e ka sebopeho sa thaba kapa che" e re o fuoe lenane le felletseng. Polelo ea bothata e botsa ho fumana hore na mofuta o ka tlase o hlophisitsoeng pakeng tsa moeli o fanoeng o ka sebopeho sa thaba kapa ...

Bala haholoanyane

Potso ea 16. Subset ka kakaretso e ka arohanngoang ke m Polelo ea Bothata Bothata "Subset with sum divisible by m" e re o filoe lethathamo la linomoro tse seng mpe le palo e felletseng ea m. Hona joale o hloka ho fumana hore na ho na le sethala se nang le kakaretso e arohanngoang ke m. Ke kakaretso ea subset eo e lokelang ho fana ka eona e le ...

Bala haholoanyane

Potso ea 17. Nako e molemohali ea ho reka le ho rekisa setoko Polelo ea Bothata Bothata "Nako e Ntle ea ho Reka le ho Rekisa Li-stock" e re o fuoe lethathamo la litheko tsa bolelele n, moo karolo eo e bolokang theko ea setoko ka letsatsi leo. Haeba re ka etsa khoebo e le 'ngoe feela, ke hore, ho reka ka letsatsi le le leng ...

Bala haholoanyane

Potso ea 18. Boholo ba bolelele ba morao bo nang le phapang lipakeng tsa likarolo tse haufinyane joalo ka 0 kapa 1 Polelo ea Bothata O fuoa palo e felletseng. Bothata "Bolelele ba bolelele ba bolelele bo nang le phapang lipakeng tsa likarolo tse haufinyane joalo ka 0 kapa 1" bo kopa ho fumana bolelele bo boholo ba kamora moo le phapang lipakeng tsa likarolo tse haufi ha ea lokela ho ba tse ling ntle le 0 kapa 1. Mohlala arr [] = {1,. ..

Bala haholoanyane

Potso ea 19. Boholo ba Sehlahisoa sa Sehlahisoa Polelo ea Bothata Bothata ba "Maximum Product Subarray" bo re o fuoe lethathamo la linomoro tse nang le linomoro tse nepahetseng le tse fosahetseng. Polelo ea bothata e kopa ho fumana sehlahisoa se phahameng sa sehlopha se ka tlase. Mohlala arr [] = {2, -2, 3, 5} 15 Tlhaloso Lintlha tse lenaneng le ka tlase ...

Bala haholoanyane

Potso ea 20. Bala litorotsoana tse nang le palo e lekanang ea 1 le 0 Polelo ea Bothata Bothata "Bala li-subarrara tse nang le palo e lekanang ea 1 le 0's" e re o filoe sehlopha se nang le li-0 le 1 feela. Polelo ea bothata e kopa ho fumana palo ea li-sub-arrays tse nang le ha ho lekane le lipapatso tsa 0. Mohlala arr [] = {1, 0, 0, ...

Bala haholoanyane

Potso ea 21. Subarrays tse nang le likarolo tse ikhethang Polelo ea Bothata "Subarrays e nang le likarolo tse ikhethileng" e re o fuoe lethathamo la likarolo tse felletseng. Polelo ea bothata e kopa ho fumana kakaretso ea bolelele ba li-sub-arrays tse nang le likarolo tsohle tse fapaneng. Mohlala arr [] = {3, 1, 2, 1} 4 Tlhaloso: Li-sub-arrays ke ...

Bala haholoanyane

Potso ea 22. Lintho tse tloaelehileng meleng eohle ea matrix e fanoeng Polelo ea Bothata "Mathata a tloaelehileng melaong eohle ea matrix e fanoeng" bothata bo bolela hore, o fuoa matrix ea M * N. Polelo ea bothata e kopa ho fumana lintlha tsohle tse tloaelehileng ka har'a matrix moleng ka mong oa matrix ka nako ea O (M * N). Mohlala arr [] = {{12, 1, 4, 5, ...

Bala haholoanyane

Potso ea 23. 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 24. Boholo ba likarolo tse nyane tsa bitonic Polelo ea Bothata Re fuoa lenane le nang le linomoro tse ngata. Re hloka ho fumana palo e phahameng ea palo ea bonyane. Subonic ea bitonic ha se letho empa ke karoloana feela moo likarolo li hlophisitsoeng ka tatellano e itseng. E leng hore likarolo tsa pele li ntse li eketseha ka tatellano ebe ho latela ...

Bala haholoanyane

Potso ea 25. Fokotsa phapang e kholo lipakeng tsa libaka tse phahameng Polelo ea Bothata U fuoa bophahamo ba litora le palo k. Re ka eketsa bophahamo ba tora ka k kapa ra fokotsa bophahamo ka k, empa hanngoe feela. Polelo ea bothata e kopa ho fokotsa phapang e phahameng lipakeng tsa libaka tse phahameng. Seo ke ho ...

Bala haholoanyane

Potso ea 26. Nako e telele ka ho fetisisa e nang le Sum e le 'ngoe ka makhetlo a mabeli a Binary Polelo ea Bothata U fuoa mefuta e 'meli eo ho eona e' ngoe le e 'ngoe e nang le nomoro ea binary. Polelo ea bothata e kopa ho fumana nako e telele ka ho fetesisa ka chelete e lekanang ka makhetlo a mabeli a li-binary, ke ho fumana bolelele bo bolelele bo tloaelehileng ho tloha ho (i, j) ka tsela eo j e fetang ...

Bala haholoanyane

Potso ea 27. Lipalo tsa Subsets li na le Phapang le Linomoro Kaofela ha rona re na le bothata ba bothata ba subset ka nako e 'ngoe kapa e' ngoe puisanong. Batho ba botsang lipotso le bona ba rata mathata ana. Mathata ana a ba thusa ho lekola kutloisiso hammoho le ts'ebetso ea mohopolo ea moithuti ofe kapa ofe. Kahoo, ntle le ts'ehetso e ngoe, a re tloleleng ka kotloloho ho ...

Bala haholoanyane

Potso ea 28. Puputso ea Lentsoe Patlo ea mantsoe ke ntho e kang malepa a ho fumana mantsoe ka nako e 'ngoe bophelong ba rona. Kajeno ke tlisa tafoleng poleloana e fetotsoeng. Babali ba ka ba tlameha ho makala hore na ke bua ka eng. Ntle le ho senya nako, a re fihleng polelong ea mathata Re ka ...

Bala haholoanyane

Potso ea 29. Kopanya Likhaohano tse Kopaneng Ha re kopanya bothata ba linako tse lekanang re fane ka pokello ea linako, kopanya le ho khutlisa linako tsohle tse lekanang. Kenyelletso ea Mohlala: [[2, 3], [3, 4], [5, 7]] Sephetho: [[2, 4], [5, 7]] Tlhaloso: Re ka kopanya [2, 3] le [3 , 4] hammoho ho theha [2, 4] Mokhoa oa ho fumana Merge ...

Bala haholoanyane

Potso ea 30. Boholo ba Subarray Mathateng a Maximum Subarray re fane ka li-num tse ngata tse fapaneng, fumana sehlopha se kopaneng se nang le kakaretso e kholo ebe o printa boholo ba boleng ba karolelano. Mohlala oa ho kenya linomoro [] = {-2, 1, -3, 4, -1, 2, 1, -5, 4} Output 6 Algorithm Morero ke ho fumana ...

Bala haholoanyane

Potso ea 31. Ho kopanya Likarolo Ha re kopanya likhaohano mathata re fane ka sete ea linako tsa sebopeho [l, r], kopanya likarolo tse tlamang. Keketso ea Mehlala {[1, 3], [2, 6], [8, 10], [15, 18]} Sephetho {[1, 6], [8, 10], [15, 18]} Keletso 1, 4], [1, 5]} Sephetho {[1, 5]} Mokhoa o se nang tsebo oa ho kopanya likarolo ...

Bala haholoanyane

Potso ea 32. Nomoro e sieo Bothateng ba Nomoro e Haellang re fane ka boholo ba boholo ba N bo nang le nomoro ho tloha ho 0 ho isa ho N. Litekanyetso tsohle tsa sehlopha li ikhethile. Re hloka ho fumana palo e sieo e seng teng ka bongata mme palo eo e pakeng tsa 0 le N. Mona ...

Bala haholoanyane

Potso ea 33. Mofuta oa ho kenya Hlopha lethathamo le sa hlophisoang le sebelisang mofuta oa algorithm oa kenyelletso. Ho kenya: {9,5,1,6,11,8,4} Sephetho: {1,4,5,6,8,9,11} Khopolo ea ho Kenyeletsa Hlopha lipalo ka tsela e ts'oanang le ha rona batho re hlophisa sete ea Lintho tse nang le linomoro (likarete tsa khale) Nomoro e nkuoa ho tsoa lenaneng le sa hlophisoang (subarray e ka ho le letona) ho ea boemong bo hlophisitsoeng ...

Bala haholoanyane

Potso ea 34. Nako e telele ka ho fetisisa e nang le Sum e le 'ngoe ho li-Binary Arrays II tse peli Polelo ea Bothata Bothateng ba "Longest Span e nang le Sum e le 'ngoe bothateng ba Binary Arrays II", re fane ka li-binary tse peli "a" le "b" ka boholo bo lekanang. Ngola lenaneo ho hatisa nako e telele ka ho fetisisa ka chelete e lekanang ka makhetlo a mabeli. Sena se ka hlalosoa ka ho hlaka ho ...

Bala haholoanyane

Potso ea 35. Kopanya Likhaohano tse Kopaneng II Polelo ea Bothata Bothateng ba "Kopanya Likarohano tse Kopaneng tsa Bobeli" re fane ka sete ea linako. Ngola lenaneo le tla kopanya mekhahlelo e kenang ho e le ngoe ebe o hatisa linako tsohle tse sa lekanang. Fomate ea ho kenya Mohala oa pele o nang le palo e kholo n. Mohala oa bobeli o nang le lipara moo para ka 'ngoe e leng ...

Bala haholoanyane

Potso ea 36. Boholo ba Subarray Sum bo sebelisa Karohano le ho Hlōla Polelo ea Bothata Bothateng ba "Maximum Subarray Sum e sebelisang Divide le Conquer" re fane ka lethathamo la linomoro tse ntle le tse mpe. Ngola lenaneo le tla fumana kakaretso e kholo ka ho fetisisa ea karoloana e ikhethileng. Fomate ea ho Kena Mohala oa pele o nang le palo e kholo ea N. Mohala oa bobeli o nang le pokello ea ...

Bala haholoanyane

Potso ea 37. 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 38. Beakanya lipalo tse ntle le tse fosahetseng ka tsela e 'ngoe ho Array Polelo ea Bothata Bothateng ba "Hlophisa Linomoro Tse Ntle le Tse Fosahetseng ka Tsela e 'Ngoe ka Tsela" re fane ka letoto le []. Sehlopha sena se na le linomoro tse nepahetseng le tse fosahetseng. Beakanya lintho ka bongata ka tsela ea hore tse ntle le tse mpe li beoe ka tsela e ngoe. Mona, palo ea likarolo tse ntle le tse mpe ha e hloke ...

Bala haholoanyane

Potso ea 39. Fumana karolo e lahlehileng ho tsoa ho lenane le kopitsitsoeng Polelo ea Bothata ha e fuoa likarolo tse peli tsa A le B, sehlopha se le seng ke lefahla le leng ntle le ntho e le 'ngoe. Karolo e le 'ngoe e haelloa ke A kapa B. re hloka ho fumana ntho e lahlehileng ho tsoa lenaneng le kopilitsoeng. Mohlala 5 1 6 4 8 9 6 4 8 ...

Bala haholoanyane

Potso ea 40. Lokisetsa bocha lenane le fuoeng boholo bo tlase Polelo ea Bothata Bothateng ba "Rearange Array in Maximum Minimum Form" bothata, re fane ka sehlopha se hlophisitsoeng se nang le likarolo tsa N. Beakanya botjha mefuta e felletseng ya dinomoro tse nepahetseng, hore dikarolo tse ding di be max le min min. Sheba ka tlase bakeng sa kutloisiso e betere ea ho hlophisoa bocha ha likarolo- Array [0] ...

Bala haholoanyane

Potso ea 41. Kopanya Lisebelisoa tse peli tse hlophisitsoeng Polelo ea Bothata Ho kopanya mathata a mabeli a hlophisitsoeng, re fane ka lintlha tse peli tse hlophisitsoeng tse kentsoeng, re hloka ho kopanya likarolo tsena tse peli hore linomoro tsa pele kamora ho hlopha ka botlalo li be sehlopheng sa pele mme li lule sehlopheng sa bobeli. Keletso ea Mohlala A [] = {1, 3, 5, 7, ...

Bala haholoanyane

Potso ea 42. 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 43. Ho kopanya mefuta e 'meli e hlophisitsoeng Polelo ea Bothata Ha re kopanya bothata ba lihlopha tse peli tse hlophisitsoeng re fane ka mefuta e 'meli e hlophisitsoeng, e' ngoe e nang le boholo ba m + n le e 'ngoe e nang le boholo n. Re tla kopanya mefuta e fapaneng ea n + m le n size array ebe re hatisa m + n boholo bo kopaneng. Mohlala Input 6 3 M [] = ...

Bala haholoanyane

Potso ea 44. 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 45. Tlosa Zero Tsohle Qetellong ea Lenane le Fuoeng Polelo ea Bothata Lethathamong le fanoeng tsamaisa linoto tsohle tse teng ka har'a sehlopha ho fihlela qetellong. Mona ho lula ho na le mokhoa oa ho kenya linomoro tsohle ho isa qetellong ea sehlopha. Ho kenya mohlala 9 9 17 0 14 0 ...

Bala haholoanyane

Potso ea 46. Fumana palo e nyane ka ho fetisisa e sieo ka tatellano e hlophiloeng Polelo ea Bothata Bothateng ba "Fumana Ntho e Nyane ka ho Fetisisa e Fosahetseng ka tatellano e hlophisitsoeng" re fane ka lenane le le leng. Fumana nomoro e nyane ka ho fetisisa e sieo lenaneng le hlophisitsoeng ka boholo ba N le nang le likarolo tse ikhethileng ho 0 ho M-1, moo M> N. Ho kenya mohlala [0, 1, 2, 3, 4, 6, 7, ...

Bala haholoanyane

Potso ea 47. Fumana Nomoro e Haellang Polelo ea Bothata Ha re fumana linomoro tse sieo ho tsoa lenaneng la linomoro tse 1 ho isa ho tse N re fane ka lethathamo le nang le linomoro tsa N-1. Nomoro e le 'ngoe ha e na palo ea linomoro ho tloha ho 1 ho ea ho N. Re tlameha ho fumana nomoro e sieo. Fomate ea Input Mohala oa pele o nang le palo e felletseng ...

Bala haholoanyane

Lipotso tsa Cisco String

Potso ea 48. Tharollo ea Leetcode e Tloaelehileng e telele ka ho fetisisa Polelo ea Bothata The Longest Common Prefix LeetCode Solution - "Longest Common Prefix" e bolela hore ho fanoe ka mefuta e mengata ea likhoele. Re hloka ho fumana sehlongwapele se selelele ka ho fetisisa hara dikgwele tsena. Haeba ho se na sehlongoapele, khutlisetsa khoele e se nang letho. Mohlala: Kenyelletso: strs = ["palesa",,"phalla","sefofane"] Sephetho: "fl" Tlhaloso: "fl" ke e telele ka ho fetisisa ...

Bala haholoanyane

Potso ea 49. Masakaneng a Sebetsang Tharollo ea Leetcode Polelo ea Bothata Tharollo ea LeetCode e Sebetsang - "Masakaneng a Tšepahalang" e re o fuoa khoele e nang le litlhaku feela '(', ')', '{', '}', '[' le ']'. Re hloka ho fumana hore na khoele ea ho kenya ke khoele e nepahetseng kapa che. Khoele ho thoe ke khoele e sebetsang haeba masakaneng a bulehileng a tlameha ho koaloa ...

Bala haholoanyane

Potso ea 50. Mohala o molelele ka ho Fetisisa Ntle le ho Pheta Litlhaku Tharollo ea LeetCode Mohala o molelele ka ho Fetisisa o sa Phetang Litlhaku Tharollo ea LeetCode - Ho fanoe ka khoele, re tlameha ho fumana bolelele ba mohala o molelele ka ho fetisisa ntle le ho pheta-pheta litlhaku. Ha re shebeng mehlala e seng mekae: Mohlala pwwkew 3 Tlhaloso: Karabo ke “wke” ka bolelele ba 3 aav 2 Tlhaloso: Karabo ke “av” ka bolelele 2 Atamela-1 ...

Bala haholoanyane

Potso ea 51. Beakanya khoele ea binary joalo ka liketsahalo tse ling tsa x le y Polelo ea Bothata Ha re re u fuoa khoele ea binary, le linomoro tse peli x le y. Khoele e na le li-0 le 1s feela. Bothata "hlophisa bocha khoele ea binary joalo ka ha li etsahala 'me" e kopa ho hlophisa khoele joalo ka ha 0 e tla makhetlo a x x 1 e tla ...

Bala haholoanyane

Potso ea 52. Fetolela mantsoe ka khoele Polelo ea Bothata "Reverse mantsoe ka khoele" e re o filoe khoele ea boholo ba n. Hatisa khoele ka tatellano e fapaneng hore lentsoe la ho qetela e be la pele, la bobeli la ho qetela e be la bobeli, joalo-joalo. Mona re bua ka polelo e nang le mantsoe ho fapana ...

Bala haholoanyane

Potso ea 53. Hlahloba Litsela Mathateng a Decode Ways re fane ka khoele e se nang letho e nang le linomoro feela, fumana palo ea litsela tsa ho e khetholla u sebelisa 'mapa o latelang:' A '-> 1' B '-> 2 ...' Z '-> 26 Mohlala S = "123" Palo ea litsela tsa ho khetholla khoele ena ke 3 Haeba re ...

Bala haholoanyane

Potso ea 54. Tsamaisa khoele Ha re re, o fuoa khoele e kentsoeng. Thapo e kentsoe ka mofuta o itseng oa paterone, mosebetsi oa hau ke ho khetholla khoele. Ha re re, <no of times khoele e etsahala> [khoele] Mohlala Keletso 3 [b] 2 [bc] Tlhaloso ea bbbcaca Tlhaloso Mona "b" e hlaha makhetlo a 3 le "ca" e hlaha makhetlo a 2. ...

Bala haholoanyane

Potso ea 55. Lekola hore na lenane le hokahaneng la likhoele le etsa Palindrome Polelo ea Bothata Bothateng ba "Hlahloba hore na lenane le hokahaneng la likhoele le etsa bothata ba Palindrome" re fane ka lenane le hokahaneng la ho sebetsana le data ea likhoele. Ngola lenaneo ho lekola hore na data e theha palindrom kapa che. Mohlala ba-> c-> d-> ca-> b 1 Tlhaloso: Mohlala o kaholimo rea bona hore ...

Bala haholoanyane

Lipotso tsa Sefate sa Cisco

Potso ea 56. Tšoaea Sefate sa Binary se nang le Lintlha tse sa Lebelloang Polelo ea Bothata U fuoa sefate se felletseng sa binary se nang le lits'oants'o tse sa reroang. Lits'oants'o tse sa lebelloang ho buuoa ka li-node tseo node e 'ngoe le e' ngoe e li supang ntle le ngoana oa eona oa leqele le letona. Kahoo, sena se boetse se fetola sebopeho se tloaelehileng sa node sefateng se bonolo sa binary. Joale node ea ...

Bala haholoanyane

Potso ea 57. Fetolela BST hore e be Min-Heap ntle le ho sebelisa sehlopha Polelo ea Bothata "Fetolela BST hore e be Min-Heap ntle le ho sebelisa sehlopha" bothata bo re o fuoe BST (sefate sa lipatlisiso tsa binary) mme o hloka ho e fetola qubu ea min. Qubu ea min e lokela ho ba le likarolo tsohle tsa sefate sa patlo sa binary. Algorithm e lokela ho sebetsa ka mokhoa o rarahaneng oa nako. ...

Bala haholoanyane

Potso ea 58. K'th Element e Kholo ho BST ha phetoho ea BST e sa lumelloe Polelo ea Bothata "K'th Largest Element ho BST ha phetoho e sa lumelloe" e re o fuoe sefate sa lipatlisiso tsa binary mme o hloka ho fumana element ea kth e kholo. Sena se bolela hore ha likarolo tsohle tsa sefate sa lipatlisiso tsa binary li hlophisitsoe ka tatellano e theohelang. Ebe ...

Bala haholoanyane

Potso ea 59. Tsela ea ho Tsamaea ha Binary Tree Level Order Traversal ea sefate se fanoeng sa binary e ts'oana le BFS ea sefate sa binary. Na re se re ntse re tseba hore na haele hantle BFS ke eng? Haeba ho se joalo ha ho hlokahale hore u utloe bohloko bala feela sengoloa sohle 'me u etele lingoliloeng tsa rona tse fetileng bakeng sa kutloisiso e betere. BFS ke ...

Bala haholoanyane

Lipotso tsa Cisco Graph

Potso ea 60. Algorithm ea Prim Algorithm ea Prim e sebelisetsoa ho fumana Minimum Spanning Tree (MST) ea graph e hokahaneng kapa e sa lebisoang. Sefate sa Spanning sa graph ke karoloana eo hape e leng sefate 'me e kenyelletsa mahlakore ohle. Minimum Spanning Tree ke sefate se otlolohileng se nang le bokaalo bo tlase ba boima ba 'mele. Mohlala oa Bonyane ba Graph ...

Bala haholoanyane

Potso ea 61. Algorithm ea Dijkstra Dijkstra ke tsela e khutšoane ka ho fetisisa ea algorithm. Algorithm ea Dijkstra e sebelisetsoa ho fumana sebaka se sekhuts'oane ho feta sa li-node tsohle ho tloha node ea qalo e fanoeng. Ka mokhoa o utloahalang e theha sefate se sekhutšoanyane sa sefate ho tsoa mohloling o le mong oa mohloli, ka ho lula u eketsa li-node ka meharo joalo ka hore ntlheng e ngoe le e ngoe node e ngoe ho ...

Bala haholoanyane

Lipotso tsa Cisco Stack

Potso ea 62. 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 63. Masakaneng a Sebetsang Tharollo ea Leetcode Polelo ea Bothata Tharollo ea LeetCode e Sebetsang - "Masakaneng a Tšepahalang" e re o fuoa khoele e nang le litlhaku feela '(', ')', '{', '}', '[' le ']'. Re hloka ho fumana hore na khoele ea ho kenya ke khoele e nepahetseng kapa che. Khoele ho thoe ke khoele e sebetsang haeba masakaneng a bulehileng a tlameha ho koaloa ...

Bala haholoanyane

Potso ea 64. Tsamaisa khoele Ha re re, o fuoa khoele e kentsoeng. Thapo e kentsoe ka mofuta o itseng oa paterone, mosebetsi oa hau ke ho khetholla khoele. Ha re re, <no of times khoele e etsahala> [khoele] Mohlala Keletso 3 [b] 2 [bc] Tlhaloso ea bbbcaca Tlhaloso Mona "b" e hlaha makhetlo a 3 le "ca" e hlaha makhetlo a 2. ...

Bala haholoanyane

Cisco Queue Lipotso

Potso ea 65. Tsela ea ho Tsamaea ha Binary Tree Level Order Traversal ea sefate se fanoeng sa binary e ts'oana le BFS ea sefate sa binary. Na re se re ntse re tseba hore na haele hantle BFS ke eng? Haeba ho se joalo ha ho hlokahale hore u utloe bohloko bala feela sengoloa sohle 'me u etele lingoliloeng tsa rona tse fetileng bakeng sa kutloisiso e betere. BFS ke ...

Bala haholoanyane

Lipotso tsa Cisco Matrix

Potso ea 66. Litsela Tse Ikhethang II Tharollo ea Leetcode Tlhaloso ea Bothata Litsela Tse Ikhethang II Tharollo ea LeetCode - "Litsela tse Ikhethang II" li bolela hore ho fanoe ka marang-rang a mxn moo roboto e qalang ho tloha ka holimo ho le letšehali la marang-rang. Re hloka ho fumana palo eohle ea litsela tsa ho fihla sekhutlong se ka tlase se letona sa marang-rang. ...

Bala haholoanyane

Potso ea 67. Tharollo ea Lentsoe Leetcode Tharollo Polelo ea Bothata Ha u fuoa boto ea mxn le lentsoe, fumana hore na lentsoe le teng ho grid. Lentsoe lena le ka hahuoa ho tsoa ho litlhaku tsa lisele tse haufi tse latellanang, moo lisele tse "haufi" li bapileng le tse ling. Sele e tšoanang ea lengolo e kanna ea se sebelisoe makhetlo a fetang a le mong. Mohlala ...

Bala haholoanyane

Potso ea 68. Tsela e nang le karolelano ea boleng bo holimo Polelo ea Bothata Bothata "Tsela e nang le boleng bo holimo" e bolela hore o fuoe sehlopha sa 2D kapa palo ea linomoro. Joale nahana hore u eme ka seleng e kaholimo ho le letšehali 'me u hloka ho fihla tlase tlase. Bakeng sa ho fihla moo o yang teng, o hloka ho fetela pele ho ...

Bala haholoanyane

Potso ea 69. Lintho tse tloaelehileng meleng eohle ea matrix e fanoeng Polelo ea Bothata "Mathata a tloaelehileng melaong eohle ea matrix e fanoeng" bothata bo bolela hore, o fuoa matrix ea M * N. Polelo ea bothata e kopa ho fumana lintlha tsohle tse tloaelehileng ka har'a matrix moleng ka mong oa matrix ka nako ea O (M * N). Mohlala arr [] = {{12, 1, 4, 5, ...

Bala haholoanyane

Cisco Lipotso tse ling

Potso ea 70. Phapang e kholo Pakeng tsa Keketseho ea Elements LeetCode Tharollo Polelo ea Bothata Phapang e kholo lipakeng tsa Keketseho ea Elements LeetCode Tharollo - Ho fanoe ka 0-indexed integer array nums ea boholo n, fumana phapang e kholo pakeng tsa nums[i] le nums[j] (ke hore, nums[j] - nums[i]), hoo 0 <= i < j < n le nums[i] < nums[j]. Khutlisetsa phapang e kholo. Haeba ho se na i le j tse joalo, khutlisetsa -1. Mehlala & Litlhaloso Mohlala 1: Kenyelletso: lipalo = [7,1,5,4] Sephetho: 4 Tlhaloso: Phapang e kholo e etsahala ...

Bala haholoanyane

Potso ea 71. 3Sum Haufinyane Tharollo ea LeetCode Polelo ea Bothata 3Sum e Haufi ka ho Fetisisa ea Tharollo ea LeetCode – Ka lebaka la palo e felletseng ea palo ea bolelele ba n le palo e felletseng ea palo, fumana linomoro tse tharo ka lipalo hoo kakaretso e leng haufi haholo le sepheo. Khutlisetsa kakaretso ea linomoro tse tharo. U ka 'na ua nahana hore tlhahiso e' ngoe le e 'ngoe e tla ba le tharollo e le' ngoe hantle. Kenyelletso: linomoro = [-1,2,1,-4], target = 1 Sephetho: ...

Bala haholoanyane

Potso ea 72. Bonyane Knight e Tsamaisa LeetCode Tharollo Polelo ea Bothata Bonyane Knight e Tsamaisa LeetCode Tharollo - Ka har'a chessboard e sa feleng e nang le likhokahano ho tloha ho -infinity ho isa +infinity, u na le knight sekwere [0, 0]. Knight e na le metsamao e 8 eo e ka e etsang, joalo ka ha ho bontšitsoe ka tlase. Mohato o mong le o mong o na le lisekoere tse peli ka lehlakoreng la cardinal, ebe sekwere se le seng ka tsela ea orthogonal. Khutlisetsa bonyane ba nomoro ...

Bala haholoanyane

Potso ea 73. Binary Tree Zigzag Level Order Traversal LeetCode Tharollo Polelo ea Bothata Binary Tree Zigzag Level Order Traversal LeetCode Tharollo - Ka lebaka la motso oa sefate sa binary, khutlisetsa boemo ba zigzag ho potoloha ha boleng ba li-node tsa eona. (ke hore, ho tloha ho le letšehali ho ea ho le letona, ebe ho le letona ho ea ho le letšehali bakeng sa boemo bo latelang le ho fapanyetsana pakeng tsa). Kenyelletso: motso = [3,9,20,null,null,15,7] Output: [[3],[20,9],[15,7]] Tlhaloso Re ...

Bala haholoanyane

Potso ea 74. Fumana Tharollo ea LeetCode ea Duplicate Number Phatlalatso ea Bothata Fumana Tharollo ea LeetCode ea Palo E 'meli - Ho fanoe ka palo ea palo e kholo e nang le linomoro tsa n + 1 moo palo e 'ngoe le e 'ngoe e leng ho mefuta [1, n] e kenyellelitsoeng. Ho na le palo e le 'ngoe feela e phetoang ka lipalo, khutlisetsa palo ena e phetiloeng. O tlameha ho rarolla bothata ntle le ho fetola palo ea palo mme o sebelise sebaka se eketsehileng feela. Kenyelletso: lipalo = [1,3,4,2,2] Sephetho: 2 Tlhaloso ...

Bala haholoanyane

Potso ea 75. Snakes and Ladders LeetCode Tharollo Problem Statement Snakes and Ladders LeetCode Solution - U fuoa nxn integer matrix board moo lisele li ngotsoeng ho tloha ho 1 ho ea ho n2 ka mokhoa oa Boustrophedon ho tloha ka tlaase ho le letšehali la boto (ke hore board[n - 1][0]) le litsela tse fapanyetsanang moleng o mong le o mong. U qala ka lisekoere 1 tsa boto. Ketsahalong e 'ngoe le e 'ngoe, ...

Bala haholoanyane

Potso ea 76. Fetola Sets'oants'o sa LeetCode Tharollo Polelo ea Bothata Rotate Image LeetCode Solution - U fuoa nxn 2D matrix e emelang setšoantšo, potoloha setšoantšo ka likhato tse 90 (ho ea ka nako). U tlameha ho potoloha setšoantšo sebakeng, ho bolelang hore u tlameha ho fetola matrix a 2D ka kotloloho. U SE KE UA fana ka matrix e 'ngoe ea 2D ebe u potoloha. Mohlala oa 1 oa Teko: Kenyeletso: ...

Bala haholoanyane

Potso ea 77. Kopanya Array LeetCode Tharollo e Hlophisitsoeng Polelo ea Bothata Kopanya Array Array LeetCode Tharollo - U fuoa lihlopha tse peli tse felletseng tse nums1 le nums2, tse hlophisitsoeng ka tatellano e sa theoheng, le linomoro tse peli m le n, tse emelang palo ea likarolo ho nums1 le nums2 ka ho latellana. Kopanya nums1 le nums2 ho sehlopha se le seng se hlophisitsoeng ka tatellano e sa theoheng. Sehlopha sa ho qetela se hlophiloeng ha sea lokela ho khutlisoa ke mosebetsi, empa se bolokoe ka har'a lethathamo la nums1. ...

Bala haholoanyane

Potso ea 78. Hlakola Node ho Tharollo ea Leetcode ea Lethathamo le Hokahaneng Phatlalatso ea Bothata : Hlakola Node Lethathamong le Kopantsoeng Tharollo ea Leetcode - Ngola mosebetsi oa ho hlakola node lethathamong le le leng le amanang le le leng. U ke ke ua fuoa monyetla oa ho fumana hlooho ea lenane, ho fapana le moo, u tla fuoa monyetla oa ho fumana node e lokelang ho hlakoloa ka kotloloho. Ho netefalitsoe hore node e tla hlakoloa ha e ...

Bala haholoanyane

Potso ea 79. String to Integer (atoi) LeetCode Tharollo Polelo ea Bothata The String to Integer (atoi) Leetcode Solution -"String to Integer (atoi)" e bolela hore Ho kenya ts'ebetsong myAtoi(string s), e fetolang khoele ho palo e saenneng ea 32-bit (e ts'oanang le ts'ebetso ea atoi ea C/C ++ ). Algorithm bakeng sa myAtoi(string s) e tjena: Bala 'me u hlokomolohe sebaka sefe kapa sefe se etellang pele se tšoeu. Sheba hore na sebapali se latelang (haeba ...

Bala haholoanyane

Potso ea 80. Khutlisa Liaterese Tsa IP Leetcode Tharollo Polelo ea Bothata Ho Khutlisa Liaterese Tsa IP Tharollo ea LeetCode - "Khutlisa Liaterese tsa IP" e bolela hore ho fanoe ka mohala o nang le linomoro feela, re hloka ho khutlisetsa liaterese tsohle tsa IP tse ka khonehang ka tatellano leha e le efe e ka etsoang ka ho kenya matheba khoeleng. Hlokomela hore ha rea ​​lumelloa ho khutla...

Bala haholoanyane

Potso ea 81. Khoele Compression LeetCode Tharollo Tlhaloso ea Bothata Tharollo ea Khoele ea Khatello ea LeetCode - Ho fanoe ka mefuta e mengata ea litlhaku, e hatelle u sebelisa algorithm e latelang: Qala ka khoele e se nang letho s. Bakeng sa sehlopha se seng le se seng sa litlhaku tse pheta-phetoang ka li-char: Haeba bolelele ba sehlopha e le 1, kopanya sebapali ho se. Ho seng joalo, eketsa sebapali se lateloang ke bolelele ba sehlopha. Khoele e hatelitsoeng ...

Bala haholoanyane

Potso ea 82. Moralo Hit Counter LeetCode Tharollo Moralo oa Setatemente sa Bothata Hit Counter LeetCode Tharollo - Rala k'haontareng ea ho otla e balang palo ea lipina tse fumanoeng metsotsong e 5 e fetileng (ke hore, metsotsoana e 300 e fetileng). Sistimi ea hau e lokela ho amohela paramethara ea setempe sa nako (ka metsotsoana ea granularity), 'me u ka nahana hore mehala e ntse e etsoa ho sistimi ka tatellano ea liketsahalo (ke hore, setempe sa nako se eketseha ka mokhoa o le mong). ...

Bala haholoanyane

Potso ea 83. Tharollo ea LeetCode ea Nomoro ea Strobogrammatic Polelo ea Bothata Tharollo ea Nomoro ea Strobogrammatic LeetCode - Ho fanoe ka nomoro ea khoele e emelang palo e feletseng, khutlela 'nete haeba num e le nomoro ea strobogrammatic. Nomoro ea strobogrammatic ke palo e shebahalang e ts'oana ha e potoloha likhato tse 180 (e shebiloe ka holimo). Mohlala oa Tlhahlobo ea 1: Kenyeletso: num = “69” Sephetho: Taba ea 'nete ea Teko ea 2: Kenyelletso: num = “692” Sephetho: Tlhaloso ea bohata ...

Bala haholoanyane

Potso ea 84. Fetola Distance LeetCode Tharollo Setatamente sa Bothata Bothata Edita Distance LeetCode Solution e re o filoe likhoele tse peli word1 le word2 mme o hloka ho fetolela lentsoe1 ho lentsoe2 ts'ebetsong e fokolang. Lits'ebetso tse ka etsoang khoeleng ke - Kenya tlhaku Hlakola tlhaku Beha sebapali Sebaka Mehlala Nyeoe ea Teko ...

Bala haholoanyane

Potso ea 85. Hlopha Array Ka Parity LeetCode Tharollo Polelo ea Bothata Ho Hlopha Array Ka Parity LeetCode Tharollo - "Hlopha Array Ka Parity" e bolela hore u fuoa palo e felletseng ea palo, tsamaisa palo e felletseng qalong ea lethathamo le lateloang ke linomoro tse sa tloaelehang. Tlhokomeliso: Khutlisetsa sehlopha sefe kapa sefe se khotsofatsang boemo bona. Mohlala: Kenyeletso: Sephetho: ...

Bala haholoanyane

Potso ea 86. 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 87. Tlosa Sehlahisoa le Kakaretso ea Likarolo tsa Tharollo e kholo ea Leetcode Polelo ea Bothata Bothateng bona, re hloka ho fumana phapang lipakeng tsa sehlahisoa sa linomoro le kakaretso ea lipalo tsa palo e nepahetseng e fanoeng. Mohlala 1234 14 Tlhaloso: Product = 4 * 3 * 2 * 1 = 24 le Sum = 4 + 3 + 2 + ...

Bala haholoanyane

Potso ea 88. Tharollo ea Lethathamo la Leetcode la Palindrome Bothateng ba "Palindrome Linked List", re tlameha ho lekola hore na lenane le fuoeng la bong bo le bong bo hokahaneng ke palindrome kapa che. Lethathamo la Mehlala = {1 -> 2 -> 3 -> 2 -> 1} Tlhaloso ea 'nete # 1: Lenane lena le palindrome joalo ka ha likarolo tsohle ho tloha qalong le morao li le ...

Bala haholoanyane

Potso ea 89. Fetolela Array Array ho Binary Search Tree Leetcode Tharollo Nahana hore re fuoe mefuta e mengata ea linomoro. Morero ke ho aha Binary Search Tree ho tsoa mofuteng ona hore sefate se lekane bolelele. Hlokomela hore ho thoe sefate se lekane bophahamo haeba phapang ea bophahamo ba li-subtrees tsa leqele le ho le letona tsa node efe kapa efe ho ...

Bala haholoanyane

Potso ea 90. Tharollo ea House Robber Leetcode Polelo ea Bothata Bothateng bona ho na le matlo seterateng mme lesholu la matlo le tlameha ho utsoetsa matlo ana. Empa bothata ke hore a ke ke a utsoetsa ntlo e fetang e le 'ngoe ka tatellano, ke hore, e haufi le e' ngoe. Ho fanoe ka lenane la linomoro tse se nang bobe tse emelang chelete ...

Bala haholoanyane

Potso ea 91. Hlahloba hore na ho na le linako tse peli tse arohanang nakong ea likhaohano tse fanoeng Polelo ea Bothata Bothata "Hlahloba hore na ho na le linako tse ling tse peli tse lekanang pakeng tsa linako tse ling" e re u fuoe linako tse ling. Nako ka 'ngoe e na le litekanyetso tse peli, e' ngoe ke nako ea ho qala 'me e' ngoe ke nako ea ho qetela. Polelo ea bothata e botsa ho sheba hore na e na le ...

Bala haholoanyane

Potso ea 92. Motlatlapi oa Ntlo The House Robber Problem e re, tikolohong ea toropo, ho na le mola o le mong oa matlo. Lesholu le rera ho nka heist sebakeng sena. Oa tseba hore na ho patiloe khauta e kae ntlong ka 'ngoe. Leha ho le joalo, molemong oa ho qoba ho baka ...

Bala haholoanyane

Potso ea 93. Phetolelo ea Pele e Mpe Kaofela ha rona re utloile polelo e reng "Apple e Mpe e Senya Sehlopha" .First Bad Version ke bothata bo bonts'ang hantle se tšoanang. Kajeno re na le bothata e leng First Bad Version. E mong oa baithuti ba sekolo o entse boitlamo bo bobe ka nth ka lebaka la hore ho tloha ho n + 1 kaofela e bile ...

Bala haholoanyane

Potso ea 94. Palo ea likotoana tse 1 Kaofela re utloile ka Boima ba Hamming ba nomoro ea binary. Boima ba hammer ke palo ea li-bits / 1s tse behiloeng ka palo ea binary. Bothateng bona Palo ea likotoana tse 1 re tlameha ho fumana boima ba palo ea nomoro e fanoeng. Mehlala Palo = 3 Binary emela = 011 ...

Bala haholoanyane

Potso ea 95. 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

Translate »
1