2246. Longest Path With Different Adjacent Characters || Leetcode || C++ || Hindi

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

Code with Sky

Code with Sky

Жыл бұрын

Today we will learn ,how to solve question 2246. Longest Path With Different Adjacent Characters || Leetcode || C++
#leetcode #cpp #dailychallenge #codewithsky #weeklychallenge #preorder #dfs
Solution:github.com/codewithSky07/CppC...
Problem:leetcode.com/problems/longest...

Пікірлер: 13
@akanksha00
@akanksha00 Жыл бұрын
Me and my friends were unable to understand this problem... really helpful 😍 keep going
@blackcap3093
@blackcap3093 Жыл бұрын
keep going
@Ankita-sd5gp
@Ankita-sd5gp Жыл бұрын
Great explanation and clean code, exactly what I was looking for. I just randomly found you channel through leetcode discussion and I must say I wish I have checked it sooner as been trying to get back in contact with dsa along my work. Keep up the good work :)
@codewithsky
@codewithsky Жыл бұрын
Thank you so much for Support😅
@vishalplayzz2580
@vishalplayzz2580 Жыл бұрын
clean code for this q !! was seeing some tree sum solutions for this q dint find it convincing this was too good 👌
@codewithsky
@codewithsky Жыл бұрын
Glad you liked it!😅
@AmarjeetKumar-to9ub
@AmarjeetKumar-to9ub Жыл бұрын
🔥++
@codewithsky
@codewithsky Жыл бұрын
Thank you so much for Support😅
@aadhyaramakrishnan3630
@aadhyaramakrishnan3630 Жыл бұрын
I have a doubt! When we are calculating maxpath for node 2, we're getting result as 2 ( node 0,node 2) so, while calculating ans , why is the value of maxpath still 1? As it has got updated to 2 now.
@codewithsky
@codewithsky Жыл бұрын
Can you please tell which example?😅
@aadhyaramakrishnan3630
@aadhyaramakrishnan3630 Жыл бұрын
@@codewithsky Example 2
@codewithsky
@codewithsky Жыл бұрын
Aree No no, i have just wrote only for 2, i told that maxpath will be updated at 10:36 onwards.You are correct it will be 2 when we will calculate for 3 . I think now your doubt might be clear😅
@aadhyaramakrishnan3630
@aadhyaramakrishnan3630 Жыл бұрын
@@codewithsky Got it! Thank you
2246. Longest Path With Different Adjacent Characters
13:39
Tech Adora by Nivedita
Рет қаралды 845
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 5 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 91 МЛН
997. Find the Town Judge || Leetcode || C++ || Hindi
7:45
Code with Sky
Рет қаралды 605
Roadmap on how to become a Data Analyst in 2024
11:36
Ashwani Panwar
Рет қаралды 16 М.
540. Single Element in a Sorted Array || Leetcode || C++ || Hindi
10:14
Why UK 🇬🇧 is going Bankrupt? : Detailed Economic Case Study
20:37
974. Subarray Sums Divisible by K || Leetcode || C++ || Hindi
12:15
Code with Sky
Рет қаралды 2,3 М.
953. Verifying an Alien Dictionary || Leetcode || C++ || Hindi
10:27
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,4 МЛН
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН