Is Subsequence (LeetCode 392) | Full Solution with subsequence definition and examples

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

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 22
@htsn256
@htsn256 Жыл бұрын
You are a legend, please keep making these, genuinely the only youtube I can follow along and understand. Keep going!!!
@nikoo28
@nikoo28 Жыл бұрын
will do
@arunspal9166
@arunspal9166 Жыл бұрын
@@nikoo28 same opinion bro i have tried several channels but you are god in these... even though am using python am able to understand the algoritham from u and able to code from that
@souvikmukherjee8419
@souvikmukherjee8419 Жыл бұрын
This Channel is a pure Gold ..... Found this few days back and really helpful
@nikoo28
@nikoo28 Жыл бұрын
thanks for the lovely feedback :)
@arshneetkathuria1757
@arshneetkathuria1757 4 ай бұрын
great work, very nicely explained.
@unemployedcse3514
@unemployedcse3514 Ай бұрын
hey nikhil , all text based solution links are navigating to random page , can u pls check on that , it was working fine earlier
@SrimathiN-sp5yr
@SrimathiN-sp5yr 5 ай бұрын
great work .Thanks for solving the problem from scratch
@nikoo28
@nikoo28 4 ай бұрын
Happy to help
@sachinpatel872
@sachinpatel872 10 ай бұрын
hello sir would you please make a video on subsequence using recursion for example if we have an arr = [1,2,3] output = ans = [[],1,2,3,[1,2][2,3],[1,3][1,2,3]]
@nikoo28
@nikoo28 10 ай бұрын
will do
@alekseiwe
@alekseiwe Жыл бұрын
Cool explanation. Thanks!
@anutoshghosh7893
@anutoshghosh7893 8 ай бұрын
In the two pointer approach, I did not understand one thing the ordering also has to be checked in a subsequence which is missing for the problem in the testcases, for instance here s = "acg" and t = "ahbgdc", they are considering s as a subsequence of t which should not be so, as the ordering is not maintained, although all elements are present from s in t. Please explain this once, because in your code as well the ordering part is not covered.
@nikoo28
@nikoo28 7 ай бұрын
acg is NOT a subsequence of abhgdc, the ordering of character changes
@anutoshghosh7893
@anutoshghosh7893 7 ай бұрын
Yes that was my query where are we taking care of this ordering as well in code even though acg is not a subsequence of ahbgdc, are we really taking care of it in code? If so how?
@nikoo28
@nikoo28 7 ай бұрын
@@anutoshghosh7893 in the last return statement. It will return a false with the test case you mentioned.
@subee128
@subee128 9 ай бұрын
Thanks
@leetcode650
@leetcode650 10 ай бұрын
could u do the follow up question?
@nikoo28
@nikoo28 10 ай бұрын
will do that soon, it got added recently after I posted the video.
@jegankingmaker9184
@jegankingmaker9184 Жыл бұрын
let sunsequence=(str1,str2)=>{ let fam=[] for(let i = 0; i
@kamalasowmya7120
@kamalasowmya7120 10 ай бұрын
could u do the follow up question?
@nikoo28
@nikoo28 9 ай бұрын
Yes I will
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 22 МЛН
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 31 МЛН
Это было очень близко...
00:10
Аришнев
Рет қаралды 1,3 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 19 МЛН
Is Subsequence - Leetcode 392
8:29
NeetCode
Рет қаралды 49 М.
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 22 МЛН