330. Patching Array - Day 16/30 Leetcode June Challenge

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

Programming Live with Larry

Programming Live with Larry

12 күн бұрын

Larry solves and analyzes this Leetcode problem as both an interviewer and an interviewee. This is a live recording of a real engineer solving a problem live - no cuts or edits!
Problem: leetcode.com/problems/patchin...
Twitch: / larryny
Discord: / discord
Instagram: / larrysomewhere
#leetcode #coding #programming

Пікірлер: 12
@Algorithmist
@Algorithmist 9 күн бұрын
Were you able to patch this problem up?
@akashsonar6332
@akashsonar6332 9 күн бұрын
Great 👍 ! You just code 👨‍💻the solution up, the way you talk sometime doesn't make sense for not experienced like us. Please make sure to explain your idea a little 😅 bit more in future videos.
@Gzzzzzz111
@Gzzzzzz111 9 күн бұрын
A tip. If you don’t understand his solution, which happened to me most of the times too, try looking up one of the highest upvoted solutions on the discussion page. Those solutions oftentimes have better explanation and walkthrough.
@Algorithmist
@Algorithmist 8 күн бұрын
Ya, that's a fair point - I honestly underestimated how difficult people viewed this problem - or I would've gone in details more. It is a similar problem to a few problems in the past. I think the necessary details is there, but it does require a bit more practice to understand.
@rohitkumarpilania94
@rohitkumarpilania94 9 күн бұрын
ok so this problem's solution is not intutive at all to build the intution i first did 1798. Maximum Number of Consecutive Values You Can Make then patching array was not that bad and ended up with a code very similar to larry's
@pchandu1995
@pchandu1995 9 күн бұрын
@Algorithmist how did you made that observation? and concluded it is greedy, Also do you have any book recommendation on it?
@Algorithmist
@Algorithmist 8 күн бұрын
Honestly by the response I underestimated how much trouble people had - I should've elaborated more - I do go over the essence but it is tough without the idea - but ultimately it is just practice
@pchandu1995
@pchandu1995 8 күн бұрын
@@Algorithmist i find your explanation easy and i can connect with your thoughts process easily. maybe little more elaboration could help.
@luizfelipe2330
@luizfelipe2330 9 күн бұрын
To be honest, I couldn't solve this problem. Initially, I though of a backtracking solution to cover all the possible combinations and I tried to add some DP logic to speed up things but I couldn't make it, I got TLE several times.
@De1n1ol
@De1n1ol 9 күн бұрын
Try to analyze the constraints before coding. They are too large for backtracking and dp clearly
@luizfelipe2330
@luizfelipe2330 8 күн бұрын
@@De1n1ol Actually I saw it, but at the same point, I convinced myself that maybe I could handle it if I combined backtracking with DP.
Best Order to Learn Algorithms & Data Structures
1:00
NeetCodeIO
Рет қаралды 126 М.
I solved 541 Leetcode problems #leetcode #codinginterview
0:43
Sahil & Sarra
Рет қаралды 693 М.
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 57 МЛН
1❤️#thankyou #shorts
00:21
あみか部
Рет қаралды 88 МЛН
330. Patching Array - Day 29/31 Leetcode August Challenge
12:58
Programming Live with Larry
Рет қаралды 2,2 М.
3 Tips I’ve learned after 2000 hours of Leetcode
0:44
Top SWE
Рет қаралды 484 М.
LeetCode 2781  Length of the Longest Valid Substring
5:31
How we live in Texas
Рет қаралды 140
2365. Task Scheduler II
10:21
Hui Xu
Рет қаралды 4
Sum of Square Numbers - Leetcode 633 - Python
14:26
NeetCodeIO
Рет қаралды 11 М.
633. Sum of Square Numbers - Day 17/30 Leetcode June Challenge
16:44
Programming Live with Larry
Рет қаралды 418
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 49 МЛН
#miniphone
0:16
Miniphone
Рет қаралды 3,5 МЛН