2096. Step-By-Step Directions From a Binary Tree Node to Another | LCA | Backtracking | 2 Pointers

  Рет қаралды 5,274

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 14
@Ayush37262
@Ayush37262 4 ай бұрын
You are quite better than codestorywithMIK
@ArhamSheikh-kl1bo
@ArhamSheikh-kl1bo 4 ай бұрын
Explanation is always at next level 🔥
@prathamgolwala9282
@prathamgolwala9282 4 ай бұрын
Bhaiya Dp on trees ka crash course pls 🙏
@harshlimbachiya7510
@harshlimbachiya7510 4 ай бұрын
Great Thumbnails ++
@AyushSharma-tj1kp
@AyushSharma-tj1kp 4 ай бұрын
This is giving memory exceed limit error how to fix that??
@jimspatel2407
@jimspatel2407 4 ай бұрын
You need to pass the string by reference. may be you are trying to passing string without reference.
@rishabhranjan5162
@rishabhranjan5162 4 ай бұрын
passing string without reference leads to making a copy of the string for every recursive call, thus leading to memory exceed limit
@AyushSharma-tj1kp
@AyushSharma-tj1kp 4 ай бұрын
@@rishabhranjan5162 ok thanks got it
@abhishekshukla5484
@abhishekshukla5484 4 ай бұрын
If u upload explaination notes it will be fine
@akshaanshsrivastava9817
@akshaanshsrivastava9817 4 ай бұрын
Very Heavy Explanation..
@curlyoreki
@curlyoreki 4 ай бұрын
also link the refrence problem you are using in the problem
@tgayush1424
@tgayush1424 4 ай бұрын
i have one question ,is it good to use global variables ? Using global variables is not a good way to write solution for a problem i guess.
@badasspandit1886
@badasspandit1886 4 ай бұрын
house robber 3 kraa do Mnnit se hi hoon
@tgayush1424
@tgayush1424 4 ай бұрын
No need to take j can be done with i alone - int i = 0, n1 = rootToStartPath.size(), n2 = rootToDestPath.size(); int lcaLenFromRoot = 0; while(i
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 84 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 233 МЛН
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 199 М.