Check if There is a Valid Partition For The Array - Leetcode 2369 - Python

  Рет қаралды 9,341

NeetCodeIO

NeetCodeIO

Күн бұрын

Пікірлер: 23
@amanaryan7271
@amanaryan7271 Жыл бұрын
Excellent explanation!!!! Keep uploading daily leetcode problems and if possible weekly and biweekly contests too. It'll be very much helpful!!!!
@purna4815
@purna4815 Жыл бұрын
Hi, sir, this is Purna from India, I always watch your videos for the problem-solving, "Wow, this video is an absolute gem! The way it breaks down the complex problem into easy-to-understand segments is truly impressive. The visuals are captivating, and the narration is clear and engaging. I learned so much from watching this - it's evident that a lot of effort and research went into creating such a valuable solution. This is definitely going into my 'favorites' playlist, and I can't wait to share it with my friends. Keep up the fantastic work!"
@massimomonticelli6010
@massimomonticelli6010 Жыл бұрын
Hey NeetCode! How are you doing? In the top-down implementation, we can make an optimisation: if the first dfs returns true, there is no need to run the second one. So in line 13, I would add this condition: if !res and i < len(nums) - 2: Also, we can change line 16 to res = dfs(i + 3), as we already know res has been set to false, if we are going to execute this expression. Thanks for your amazing video! Massimo.
@Hi-qh2en
@Hi-qh2en Жыл бұрын
It would be great if you could explain some of the Q4’s on the weekly/biweekly contests. I can never usually solve them but I can (usually) solve the average hard question.
@ShivendraSingh9935
@ShivendraSingh9935 Жыл бұрын
That's a really nice explanation, I checked 3 different explanation for bottom up but yours is very simple and intuitive!
@kareemadesola6522
@kareemadesola6522 Жыл бұрын
Awesome to see both bottom-up and top-down approaches. Keep it up
@chaopeter9690
@chaopeter9690 Жыл бұрын
Today completed by myself haha, no need to watch your video😁
@ultrasourus9715
@ultrasourus9715 7 ай бұрын
@rumonintokyo
@rumonintokyo Жыл бұрын
didnt really understand the dp caching thing part... do you have any other video that explains caching better ?
@yang5843
@yang5843 Жыл бұрын
Do you use your Microsoft surface to draw on during interviews?
@FRChang-g2o
@FRChang-g2o Жыл бұрын
Thanks for sharing such a excellent video!!
@parashararamesh4252
@parashararamesh4252 Жыл бұрын
Ever considered using manim for animations? Might look prettier and like 3b1b
@uptwist2260
@uptwist2260 Жыл бұрын
thanks for the daily
@pcchen1228
@pcchen1228 Жыл бұрын
SUPER CLEAR!!
@VidyaBhandary
@VidyaBhandary Жыл бұрын
Wow ... You are the king dude !!!!!
@mohakparekh8671
@mohakparekh8671 Жыл бұрын
Can someone tell me why are we not returning true when we find one valid partition. Like in [4, ,4, ,4, 5, 6] we have [4, ,4] as valid partition but still we go and check for the partition [4, ,5, 6]. Why is this needed?
@ErtjonMecka
@ErtjonMecka Жыл бұрын
I wonder how the solution would change is we have to check the string in a circular way. e.g. 74456
@graceiscoding
@graceiscoding Жыл бұрын
Where did you go?
@jessanraj9086
@jessanraj9086 Жыл бұрын
Awesome video
@phpostrich
@phpostrich Жыл бұрын
The bottom up dp part of the video, I could not follow
@satyabharadwaj7779
@satyabharadwaj7779 Жыл бұрын
I could solve it the brute force but it fails with time limit. Can someone explain how caching works here?
@NguyenLe-pu6mr
@NguyenLe-pu6mr Жыл бұрын
let's gooooo
@Arthurgarzajr
@Arthurgarzajr Жыл бұрын
First!
Partition Array for Maximum Sum - Leetcode 1043 - Python
27:33
NeetCodeIO
Рет қаралды 18 М.
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 2,1 МЛН
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 7 МЛН
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Search in Rotated Sorted Array II - Leetcode 81 - Python
17:36
NeetCodeIO
Рет қаралды 17 М.
Dynamic Programming Explained (Practical Examples)
29:00
Tech With Tim
Рет қаралды 108 М.
Number of Music Playlists - Leetcode 920 - Python
21:36
NeetCodeIO
Рет қаралды 13 М.
Unique Binary Search Trees II - Leetcode 95 - Python
12:51
NeetCodeIO
Рет қаралды 20 М.
Maximum Length of Pair Chain - Leetcode 646 - Python
13:46
NeetCodeIO
Рет қаралды 8 М.
Integer Break - Dynamic Programming - Leetcode 343 - Python
17:41