Flip String to Monotone Increasing - Leetcode 926 - Python

  Рет қаралды 11,257

NeetCodeIO

NeetCodeIO

Күн бұрын

🚀 neetcode.io/ - A better way to prepare for Coding Interviews
🥷 Discord: / discord
🐦 Twitter: / neetcode1
🐮 Support the channel: / neetcode
⭐ BLIND-75 PLAYLIST: • Two Sum - Leetcode 1 -...
💡 DYNAMIC PROGRAMMING PLAYLIST: • House Robber - Leetco...
Problem Link: leetcode.com/problems/flip-st...
0:00 - Read the problem
1:20 - Memoization explanation
4:20 - Coding Memoization
8:25 - Explaining Optimal Solution
13:52 - Coding Optimal Solution
leetcode 926
#neetcode #leetcode #python

Пікірлер: 26
@samyakjain7422
@samyakjain7422 Жыл бұрын
thanks man paused ur video at 2:56 coded myself ac in first go....i really like your way of teaching
@symbioticparasite6268
@symbioticparasite6268 Жыл бұрын
Was researching this just an hour ago, you freaky psychic....
@janvidalal476
@janvidalal476 Жыл бұрын
omg this man never disappoints .sending you good energiesssssss
@sarvesh6785
@sarvesh6785 Жыл бұрын
Thank you so much. Amazing explanation.
@clandestina_genz
@clandestina_genz Жыл бұрын
Neetcode your explanation is an Uff! You are God Sent !
@jessanraj9086
@jessanraj9086 Жыл бұрын
This series is awesome and helpful
@hufsonian
@hufsonian Жыл бұрын
The second solution is.. a beauty
@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
@KnightMirkoYo
@KnightMirkoYo Ай бұрын
This is such a tricky one to figure out
@dhamotharakannanv6153
@dhamotharakannanv6153 Жыл бұрын
@neetcode wondering what motivated you to create second channel which looks same as first
@avinashshukla6321
@avinashshukla6321 Жыл бұрын
amazing explanation
@hrithik7354
@hrithik7354 Жыл бұрын
Much needed. Thanks.
@krateskim4169
@krateskim4169 Жыл бұрын
Awesome explanation
@ngneerin
@ngneerin Жыл бұрын
Beautiful second solution
@ray811030
@ray811030 9 ай бұрын
Fuck this kind of problem. It's really hard to come up optimal solution within 5 mins when you get the question
@shubhamaryan8202
@shubhamaryan8202 Жыл бұрын
Amazing 🔥🔥
@oneplusgeek7510
@oneplusgeek7510 Жыл бұрын
This daily series is insane Neetcode! Thanks, from India!
@akankshasharma7498
@akankshasharma7498 Жыл бұрын
The second solution was cool
@recreationerz5549
@recreationerz5549 Жыл бұрын
very nice
@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.
@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 🫡
@rashzh5502
@rashzh5502 Жыл бұрын
👍👍👍
@keerthivasan138
@keerthivasan138 Жыл бұрын
Bro Pls do leetcode 2062
@Alagou
@Alagou Жыл бұрын
eternal god
Design Linked List - Leetcode 707 - Python
13:50
NeetCodeIO
Рет қаралды 23 М.
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 31 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 57 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 8 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 6 МЛН
K Inverse Pairs Array - Leetcode 629 - Python
29:44
NeetCodeIO
Рет қаралды 15 М.
Sum of Subarray Minimums - Leetcode 907 - Python
18:51
NeetCodeIO
Рет қаралды 30 М.
Best Team with no Conflicts - Leetcode 1626 - Python
14:03
NeetCodeIO
Рет қаралды 8 М.
WALKTHROUGH - LeetCode 926. Flip String to Monotone Increasing
6:07
Stone Game II - Leetcode 1140 - Python
18:40
NeetCodeIO
Рет қаралды 11 М.
Knight Dialer - Leetcode 935 - Python
16:39
NeetCodeIO
Рет қаралды 9 М.
Reveal Cards In Increasing Order - Leetcode 950 - Python
11:14
NeetCodeIO
Рет қаралды 15 М.
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 431 М.
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 31 МЛН