Coupang Lipotso tsa Puisano

Coupang Array Lipotso

Potso ea 1. Palo e kahodimodimo ea Kakaretso ea Keketseho Polelo ea Bothata Bothateng ba "Boholo bo Eketsehileng ba Kakaretso" re fane ka letoto. Fumana kakaretso ea boholo ba tatellano e fanoeng, ke hore linomoro tse latelang li hlophisitsoe ka tatellano. Ketsahalo e latelang ke karolo ea tatellano eo e leng tatellano eo e leng ...

Bala haholoanyane

Potso ea 2. Subarray ka Kakaretso e fanoeng Polelo ea Bothata Karolong e ka tlase ea bothata bo fanoeng, re fane ka sehlopha se nang le likarolo tse ntle. Re tlameha ho fumana karoloana eo ho eona kakaretso ea likarolo tsohle tsa karoloana e lekanang le given_sum. Subarray e fumaneha ho tsoa ho sehlopha sa mantlha ka ho hlakola tse ling ...

Bala haholoanyane

Coupang Lipotso Tse Ling

Potso ea 3. Palo ea Lihlekehleke Tse Koetsoeng Tharollo ea Leetcode Polelo ea Bothata : Palo ea Lihlekehleke Tse Koetsoeng Tharollo ea Leetcode - Ho fanoe ka marang-rang a 2D a nang le 0s (naha) le 1s (metsi). Sehlekehleke ke sehlopha se hokahaneng ka 4-directionally ea li-0 mme sehlekehleke se koetsoeng ke sehlekehleke ka ho felletseng (kaofela ka ho le letšehali, holimo, ka ho le letona, ka tlase) se pota-potiloeng ke 1s. Khutlisetsa palo ea lihlekehleke tse koetsoeng. Mohlala : Mohlala 1 Kenyeletso: grid = [[1,1,1,1,1,1,1,0],[1,0,0,0,0,1,1,0],[1,0,1,0,1,1,1,0, 1,0,0,0,0,1,0,1],[1,1,1,1,1,1,1,0],[2]] Sephetho : XNUMX Tlhaloso: Lihlekehleke tse putsoa ...

Bala haholoanyane

Potso ea 4. Alien Dictionary LeetCode Tharollo Polelo ea Bothata Tharollo ea Alien Dictionary LeetCode - Ho na le puo e ncha esele e sebelisang alfabeta ea Senyesemane. Leha ho le joalo, taelo har'a mangolo ha e tsejoe ho uena. U fuoa lethathamo la mantsoe a likhoele a tsoang bukeng e hlalosang mantsoe a puo esele, moo likhoele tsa mantsoe li hlophisoang ho latela melao ea puo ena e ncha. ...

Bala haholoanyane

Potso ea 5. Tharollo ea LeetCode ea Nako ea mahala ea Basebetsi Polelo ea Bothata Tharollo ea Nako ea Mahala ea Basebetsi LeetCode - Re fuoa lethathamo la lenane la basebetsi, le emelang nako ea ho sebetsa bakeng sa mosebeletsi e mong le e mong. Mosebeletsi e mong le e mong o na le lethathamo la Linako tse sa amaneng, 'me linako tsena li hlophisoa. Khutlisetsa lenane la linako tse lekanyelitsoeng tse emelang nako ea mahala e tloaelehileng, ea bolelele bo nepahetseng bakeng sa basebetsi bohle, le ...

Bala haholoanyane

Potso ea 6. Kerafo e nepahetseng ea Sefate sa LeetCode Tharollo Polelo ea Bothata Kerafo e Tiileng ea Sefate sa LeetCode Tharollo - Ho fanoe ka mathōko a kerafo, hlahloba hore na mathōko a etsa sefate se nepahetseng. Haeba ho joalo, khutlisetsa 'nete le bohata ka tsela e 'ngoe. Mathoko a fanoe e le 2D array ea boholo n*2 Mehlala & Litlhaloso Mohlala 1: Kenyelletso: n = 5, ...

Bala haholoanyane

Potso ea 7. Tharollo e ka khonehang ea Bipartition LeetCode Phatlalatso ea Bothata e ka khonehang Bipartition LeetCode Tharollo - Re batla ho arola sehlopha sa batho ba n (ba ngotsoeng ho tloha ho 1 ho ea ho n) ka lihlopha tse peli tsa boholo leha e le bofe. Motho ka mong a ka ’na a se ke a rata batho ba bang, ’me ha baa lokela ho kena sehlopheng se le seng. Ho fanoe ka nomoro ea n le lihlopha tse sa rateheng moo li sa rateheng[i] = [ai, bi] li bontša hore motho ea ngotsoeng ai o etsa ...

Bala haholoanyane

Potso ea 8. Kenya linomoro tse peli Ho eketsa linomoro tse peli ke bothata moo re faneng ka lethathamo le kopaneng le se nang letho le emelang palo e felletseng. Linomoro li bolokiloe ka tatellano e fapaneng mme node e ngoe le e ngoe e tlameha ho ba le palo e le 'ngoe feela. Kenya linomoro tse peli ebe u printa sephetho ka ho sebelisa lenane le hokahaneng. Mofuta oa Keketso ...

Bala haholoanyane

Translate »