Max Chunks To Make Array Sorted | Arrays & Strings | Leetcode 769 Solution in Hindi

preview_player
Показать описание

2. We split the array into some number of "chunks" (partitions), and individually sort each chunk.
3. Shuffling of chunk is not allowed.
4. After concatenating them, the result equals the sorted array.
5. What is the most number of chunks we could have made?

Topic: #Arrays #Splitting #Chaining

Used #DataStructure: #Arrays

#TimeComplexity: O(n)

#SpaceComplexity: O(1)

---------------------------------------------------------------

----------------------------------------------------------------

#leetcode769, #769leetcode #pepcoding #Arrays #Strings #Arrays&String #MaxChunks #Chaining #Algorithms #DSA #Pep #Coding #Code



.
.
.
Happy Programming !!! Pep it up 😍🤩
.
.
.
#pepcoding #code #coder #codinglife #programming #coding #java #freeresources #datastrucutres #pepcode #competitive #competitiveprogramming #softwareengineer #engineering #engineer
Рекомендации по теме
Комментарии
Автор

I saw many programming tutorial but the level of explanation of shreesh sir is far better than anyone. so sir keep going we are with you. Dil se huge respect sir

amanbabu
Автор

Excellent explanation shreesh sir is gem of youtube

satyamjaiswal
Автор

You guys are the real heros of YouTube ... Thankyou keep going strong 💪

pawandeepchor
Автор

Sir aisa laga ki seedha solution bta diya intuition nhi mila bilkul

_sayedramishali
Автор

Really good explanation bro. Thanks a lot 🙂

MANNUMAHESH
Автор

explanation is more than enough ....solution tak jane ki jarurat hi nhi h

anshikaagrawal
Автор

you logic fail for test case
[1, 2, 0, 3]
your logic give answer 3 but it must be 2

learnwithme
Автор

Ek aur sunhara mauka chunk count bhadne ka !!!! hahahaha....

ruchitachandel
Автор

Awesome solution, why this is called chaining technique ? could you please share list of related problems

sahazeerks
Автор

Sir, the last case that you have shown is wrong in that though u make the chunk u cant makr the array sorted.Please check

atharvakulkarni
Автор

Can anyone explain the First statement of the Question

azeemali
Автор

sir wht if the chunks overlap like in 5612304

pratikjha
Автор

what is the logic behind this chaining technique how does one think of this?

martymcfly
visit shbcf.ru