Flip String to Monotone Increasing - Leetcode 926 - Python

  Рет қаралды 12,470

NeetCodeIO

NeetCodeIO

Күн бұрын

Пікірлер: 26
@hufsonian
@hufsonian Жыл бұрын
The second solution is.. a beauty
@symbioticparasite6268
@symbioticparasite6268 Жыл бұрын
Was researching this just an hour ago, you freaky psychic....
@samyakjain7422
@samyakjain7422 Жыл бұрын
thanks man paused ur video at 2:56 coded myself ac in first go....i really like your way of teaching
@janvidalal476
@janvidalal476 Жыл бұрын
omg this man never disappoints .sending you good energiesssssss
@clandestina_genz
@clandestina_genz Жыл бұрын
Neetcode your explanation is an Uff! You are God Sent !
@98Distruttore98
@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
@sarvesh6785 Жыл бұрын
Thank you so much. Amazing explanation.
@avinashshukla6321
@avinashshukla6321 Жыл бұрын
amazing explanation
@jessanraj9086
@jessanraj9086 Жыл бұрын
This series is awesome and helpful
@ngneerin
@ngneerin Жыл бұрын
Beautiful second solution
@hrithik7354
@hrithik7354 Жыл бұрын
Much needed. Thanks.
@dhamotharakannanv6153
@dhamotharakannanv6153 Жыл бұрын
@neetcode wondering what motivated you to create second channel which looks same as first
@akankshasharma7498
@akankshasharma7498 Жыл бұрын
The second solution was cool
@KnightMirkoYo
@KnightMirkoYo 5 ай бұрын
This is such a tricky one to figure out
@ashwin_kr
@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
@ray811030 Жыл бұрын
Fuck this kind of problem. It's really hard to come up optimal solution within 5 mins when you get the question
@oneplusgeek7510
@oneplusgeek7510 Жыл бұрын
This daily series is insane Neetcode! Thanks, from India!
@shubhamaryan8202
@shubhamaryan8202 Жыл бұрын
Amazing 🔥🔥
@recreationerz5549
@recreationerz5549 Жыл бұрын
very nice
@tetsu0xyz
@tetsu0xyz Жыл бұрын
Could you tell me the difference between the previous channel and this channel? Harder problem on this channel? Anyway, I subscribed 🫡
@NeetCodeIO
@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
@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 🫡
@keerthivasan138
@keerthivasan138 Жыл бұрын
Bro Pls do leetcode 2062
@Alagou
@Alagou Жыл бұрын
eternal god
@rashzh5502
@rashzh5502 Жыл бұрын
👍👍👍
@krateskim4169
@krateskim4169 Жыл бұрын
Awesome explanation
Longest Turbulent Array - Leetcode 978 - Python
13:14
NeetCodeIO
Рет қаралды 13 М.
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 147 М.
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 13 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 5 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 111 МЛН
Tell Me About Yourself | Best Answer (from former CEO)
5:15
The Companies Expert
Рет қаралды 7 МЛН
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 197 М.
building a programming language pt. 1 | coding vlog
41:46
matty
Рет қаралды 1,4 М.
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Last Stone Weight II - Leetcode 1049 - Python
19:04
NeetCodeIO
Рет қаралды 16 М.
Number of Good Paths - Leetcode 2421 - Python
25:13
NeetCodeIO
Рет қаралды 13 М.
How I would learn to code (If I could start over)
9:16
Jason Goodison
Рет қаралды 4,9 МЛН
Knight Dialer - Leetcode 935 - Python
16:39
NeetCodeIO
Рет қаралды 10 М.
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 13 МЛН