Was researching this just an hour ago, you freaky psychic....
@samyakjain7422 Жыл бұрын
thanks man paused ur video at 2:56 coded myself ac in first go....i really like your way of teaching
@janvidalal476 Жыл бұрын
omg this man never disappoints .sending you good energiesssssss
@clandestina_genz Жыл бұрын
Neetcode your explanation is an Uff! You are God Sent !
@98Distruttore98 Жыл бұрын
It's 6:38 here in Italy. I slept less than 4h and my First thought After watching the request was: "Just count the numbers". Feel like a chad
@sarvesh6785 Жыл бұрын
Thank you so much. Amazing explanation.
@avinashshukla6321 Жыл бұрын
amazing explanation
@jessanraj9086 Жыл бұрын
This series is awesome and helpful
@ngneerin Жыл бұрын
Beautiful second solution
@hrithik7354 Жыл бұрын
Much needed. Thanks.
@dhamotharakannanv6153 Жыл бұрын
@neetcode wondering what motivated you to create second channel which looks same as first
@akankshasharma7498 Жыл бұрын
The second solution was cool
@KnightMirkoYo5 ай бұрын
This is such a tricky one to figure out
@ashwin_kr Жыл бұрын
Why not get flips to the left and right of each index? For each position, number of 1s to the left+number of 0s to the right, then find the minimum over the list. Would take 3 passes, and O(n) space. Of course, less elegant than the optimal solution, but simpler than the backtracking solution imo.
@ray811030 Жыл бұрын
Fuck this kind of problem. It's really hard to come up optimal solution within 5 mins when you get the question
@oneplusgeek7510 Жыл бұрын
This daily series is insane Neetcode! Thanks, from India!
@shubhamaryan8202 Жыл бұрын
Amazing 🔥🔥
@recreationerz5549 Жыл бұрын
very nice
@tetsu0xyz Жыл бұрын
Could you tell me the difference between the previous channel and this channel? Harder problem on this channel? Anyway, I subscribed 🫡
@NeetCodeIO Жыл бұрын
I think most people on the main channel aren't interested in frequent LC videos, so I'd rather post them here. I'll be uploading a different style of video on the main channel from now on. And will upload one sometime tomorrow.
@CuriousAnonDev Жыл бұрын
@@NeetCodeIO yeah Leetcode videos are nice but the new kind of videos you're making on main channel are fun to watch :) Keep going sir 🫡