1463. Cherry Pickup II | 4D DP | 3D DP | Dynamic Programming | Flipkart | Google

  Рет қаралды 2,260

Aryan Mittal

Aryan Mittal

Күн бұрын

In this video, I'll talk about how to solve Leetcode 1463. Cherry Pickup II | 4D DP | 3D DP | Dynamic Programming
Checkout DSA-169 Series: • Aryan DSA-169 Series |...
100Days 100k Placements: • 100 Days 100K Placement
Let's Connect:
📝Linkedin: / aryan-mittal-0077
📸 Instagram: / ez.pz.dsa
📱Telegram : t.me/aryan_mittal_group
🤖 Github: github.com/aryan-0077
About Me:
I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
✨ Timelines✨
0:00 - Problem Explanation
5:43 - Why Greedy won't work
6:41 - Easy Versions of Hard Problem (Intuition)
11:10 - Recursive Tree of 2 Robots
15:00 - Explanation of how to build Code Logic
21:00 - Code Explanation
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Пікірлер: 31
@harshal8781
@harshal8781 5 ай бұрын
Problem mic ka nhi hai mic ke positioning ka hai guys 😗
@rajrajesh1669
@rajrajesh1669 5 ай бұрын
The code implementation is brilliant bro, that just shows how good you are in dp... So simple and readable... I tried implementing on my own just after you said that it's a 3 d dp problem, I simply put 9 choices as 9 fn calls in 9 variables and picked the best among them, After your implementation, I was like, bro wait, wtf the loops are there for😂... After using for loops I reduced like 15+ lines of code... Thanks to you, man❤
@AkashKumar-bm4py
@AkashKumar-bm4py 5 ай бұрын
bro there is something wrong with your mic, please check
@mukulkhanna5071
@mukulkhanna5071 3 ай бұрын
bhai great video great solution and approach
@priyanshu6173
@priyanshu6173 5 ай бұрын
very well explained 👏👏👏👏
@learningmaths786
@learningmaths786 5 ай бұрын
Hello aryan i think your mic has some problem when you see down please correct that❤❤
@tauheedkhan7997
@tauheedkhan7997 5 ай бұрын
bhai mic badal lo
@rajrajesh1669
@rajrajesh1669 5 ай бұрын
Just wow.
@fraserdab
@fraserdab 5 ай бұрын
Grateful for your uploads man
@ARYANMITTAL
@ARYANMITTAL 5 ай бұрын
Glad you like them man ❤️❤️🫡
@DreamFist
@DreamFist 5 ай бұрын
as state [row][robo1][robo2] will be same as [row][robo2][robo1] ,thus can we set dp[row][robo1][robo2]=dp[row][robo1][robo2] =result , this will reduce computing for n states atleast ,then will the time complexity will be m*n*9 ? Please correct if wrong.
@trickydirector2584
@trickydirector2584 5 ай бұрын
Thank you Aryan! I was stuck on it for a while. I was able to solve it myself after a hint you suggested. Your videos really have improved my programming skills. Truly grateful! ❤
@amineguettaby5507
@amineguettaby5507 5 ай бұрын
if u already solve the first version then this version will be easy to solve
@louarc6357
@louarc6357 5 ай бұрын
Thanks for your video!, just a small question, in the one robot problem why wouldn't we use BFS instead?
@NicholasMcCarroll
@NicholasMcCarroll 5 ай бұрын
excellent video
@fraserdab
@fraserdab 5 ай бұрын
When u look down and speak audio is bad
@madmaxgaming5864
@madmaxgaming5864 5 ай бұрын
aryan i have a doubt, like if both are on the same cell then there is a possibility that any one robot will get max sum value by using that cell's value, so I thought of giving oppourtunity for both the robots once and get max. isnt it correct?
@nikhilprakash729
@nikhilprakash729 5 ай бұрын
our aim is to get the max sum after collections both robot value,so at the same index it does not matter if we give that value to any of the 2 robots as we are taking their sum .
@madmaxgaming5864
@madmaxgaming5864 5 ай бұрын
@@nikhilprakash729 thanks buddy
@sportlovers9283
@sportlovers9283 5 ай бұрын
Mic issue
@rohansirsa3501
@rohansirsa3501 5 ай бұрын
your mic is not working properly
@jevinmakwana6811
@jevinmakwana6811 5 ай бұрын
Bro iska bottom up bhi batdete to achha rehata
@loreekkumardas4049
@loreekkumardas4049 5 ай бұрын
Kaun BCA kar raha hai
@abhinavdubey_7
@abhinavdubey_7 5 ай бұрын
5 minute ke aas pas dekho mic main issue aa rahi hai bhai
@abhinavdubey_7
@abhinavdubey_7 5 ай бұрын
baaki solution to mast tha
@jevinmakwana6811
@jevinmakwana6811 5 ай бұрын
​@@abhinavdubey_7 oky bhai got it... jay hind jay shree Mahakal:)
@shashanksahu9230
@shashanksahu9230 5 ай бұрын
Audio bhai bahut kharab hai.
@arijitsingh1096
@arijitsingh1096 5 ай бұрын
Nice explanation but very bad audio
@AbhishekGupta-ik9ql
@AbhishekGupta-ik9ql 5 ай бұрын
Coding and concept videos kon bhi hindi mai bna don. wrna sirf ek poll dalkar check krr lon kitna logo ko videos hindi mai chaiye agar majority hindi speaking rhi toh aap dekh lena fir apna hisab sein wrna english ki rhi toh mai dobara nhi bolunga
@RishabhSingh-xn3xu
@RishabhSingh-xn3xu 5 ай бұрын
bro sara mood khrab kr diya Mic ne
@dhruvrawatt9
@dhruvrawatt9 5 ай бұрын
hn kuch samajh nahi aya
Cherry Pickup II - Leetcode 1463 - Python
24:00
NeetCodeIO
Рет қаралды 15 М.
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 14 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 68 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 39 МЛН
Best father #shorts by Secret Vlog
00:18
Secret Vlog
Рет қаралды 22 МЛН
Snapshot Array || Binary Search || Design Problem || Leetcode 1146
19:06
Draw Like A Printer LEVEL 2 - Drawing Ronaldo vs Messi
2:54
dP Art Drawing
Рет қаралды 31 МЛН
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Cherry Pickup | BackTracking Solution | Leetcode 741
20:07
Pepcoding
Рет қаралды 18 М.
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 14 МЛН