In this video, we will solve problem #91 of leetcode. I will show you the best approach to solve this problem in O(N) time complexity. We will see two different approaches to the problem's solution to optimize the time complexity.
You can watch the whole leetcode series in the playlist: https://www.youtube.com/playlist?list=PLyTI7CpFS6wVIc-wBUdvj92V2holCXPUI
Content of Video:
0:00 - Intro
0:05 - Problem Explanation
0:58 - Solution in O(2^N)
3:36 - Time Complexity for O(2^N)
4:18- Solution for O(N)
9:05 - Code for O(N)
13:45 - Code for Space Complexity O(1)
#leetcode #datastructures #algorithm #problemsolving #coding #competitiveprogramming
Download
0 formats
No download links available.
#91 Decode Ways | LeetCode Problem Solving | DSA | Algorithm | Hindi | NatokHD