Max Chunks To Make Sorted - Leetcode 769 - Python

  Рет қаралды 1,633

NeetCodeIO

NeetCodeIO

Күн бұрын

Пікірлер: 10
@mechano6505
@mechano6505 4 сағат бұрын
Half the difficulty of this problem is just understanding wtf it's asking
@josuemartinez3682
@josuemartinez3682 3 сағат бұрын
fr, was hella lost
@PanicAtProduction
@PanicAtProduction 4 сағат бұрын
Thank you for critizing leetcode’s English. It makes two times harder a regular question. Question is harder than solution many times.
@devkumar9889
@devkumar9889 5 сағат бұрын
My logic was simple, if 4 is at 0th index then what it is doing there It should have been at 4th index so it means that we got single chunk from [0,4] But all items in range [0,4] should be in range [0,4] If any item x > [0,4] then new range becomes [0, x] And this range expansion continues till we get a range where all items are within that range So keep iterating from i to max where initially max = arr[i] and this will make sure that x > [s,e] then max updates to x and we keep iterating till x and hence we found 1 chunk
@MP-ny3ep
@MP-ny3ep 3 сағат бұрын
Very beautifully explained. Thank you. Missed your videos for a while there.
@RupeshPatel-ry6jb
@RupeshPatel-ry6jb 2 сағат бұрын
Hey Neetcode, I am your pro subscriber. when are you going to release object oriented programming course?
@user-my6yf1st8z
@user-my6yf1st8z Сағат бұрын
brilliant
@VictoriaJames-i9j
@VictoriaJames-i9j 2 сағат бұрын
Well coded, thank you! I want to ask unrelated question, I have a okx wallet with USDT, and I have the seed phrase: (hollow sound same mercy asthma property exchange topple buddy need vault foster).What's the best method to send them to Binance?
@mehdiamiri5418
@mehdiamiri5418 3 сағат бұрын
hi, is there any way I can contact you?
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 173 М.
Take K of Each Character From Left and Right - Leetcode - Python
17:19
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Minimum Time to Visit a Cell In a Grid - Leetcode 2577 - Python
22:55
Count Unguarded Cells in the Grid - Leetcode 2257 - Python
17:14
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 725 М.
Sliding Puzzle - Leetcode 773 - Python
13:24
NeetCodeIO
Рет қаралды 9 М.
Minimum Limit of Balls in a Bag - Leetcode 1760 - Python
16:25
NeetCodeIO
Рет қаралды 14 М.
Rotating the Box - Leetcode 1861 - Python
15:14
NeetCodeIO
Рет қаралды 8 М.
A math GENIUS taught me how to LEARN ANYTHING in 3 months (it's easy)
8:52
Python Programmer
Рет қаралды 1 МЛН