Decode Ways | LeetCode 91 | C++, Java, Python

preview_player
Показать описание

***** Best Books For Data Structures & Algorithms for Interviews:**********
*****************************************************************************

LeetCode 91 | Decode Ways,
Facebook Coding Interview question,
google coding interview question,
leetcode,
Decode Ways,
Decode Ways c++,
Decode Ways Java,
Decode Ways python,
Decode Ways solution,
91. Decode Ways,

#Facebook #CodingInterview #LeetCode #JuneLeetCodingChallenge #Google #Amazon #DecodeWays #DynamicProgramming
Рекомендации по теме
Комментарии
Автор

I kept staring at this question in a coding interview I had today and could not come up with a solution, not even a computationally bad one. But sir, the way you explained this solution in your video is just amazing! Liked and subscribed!

alexandru-danielmarcu
Автор

This is the best explanation I've seen of this after watching three other popular youtube explanations. Thank you!

EmmanuelHiggins
Автор

The only video that explained the correct reason behind dp[i]=dp[i-1]+dp[i-2]

ayushsharma
Автор

I was stuck for so long, and the way you broke down the ways into two parts was my epiphany. I've watched many other videos and this is the best explanation. Such a relieve to finally understand it!

dennishong
Автор

Earlier I couldn't understand what is the relation between subproblems. this video cleared it. thanks. i subscribed

AkshayKumar-kzzh
Автор

watched many videos describing this problem and this was the best, thank you

sable
Автор

Thanks for the explanation. i was getting confused on previous video..Now its clear....

pratyushranjansahu
Автор

If count=0 everytime the loop starts, then why are we adding count1 or count2 to it?? Can't we just make it equal??

ashishv
Автор

Why did we assign count2 value to count1 and count2 value as count at the end?

darshitagrawal
Автор

Bro your channel is really coming along. I like your thought process.

scarface
Автор

In 1, 4, 3, 2 why haven't you considered the following combinations:
4, 13, 2
4, 21, 3
4, 12, 3
24, 13

nikhilupadhyay
Автор

Why are we adding a digit like that? Say at 8:44 you added a 3, before that you added a 0. what are we trying to achieve by doing that? Is it just to check how last digit can be combined? or something else?

VenkatIyer