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

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 22

  • @htsn256
    @htsn256 Рік тому +7

    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 Рік тому +1

    This Channel is a pure Gold ..... Found this few days back and really helpful

    • @nikoo28
      @nikoo28  Рік тому

      thanks for the lovely feedback :)

  • @arshneetkathuria1757
    @arshneetkathuria1757 5 місяців тому

    great work, very nicely explained.

  • @SrimathiN-sp5yr
    @SrimathiN-sp5yr 5 місяців тому

    great work .Thanks for solving the problem from scratch

    • @nikoo28
      @nikoo28  4 місяці тому

      Happy to help

  • @alekseiwe
    @alekseiwe Рік тому

    Cool explanation. Thanks!

  • @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

  • @sachinpatel872
    @sachinpatel872 11 місяців тому +1

    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

  • @subee128
    @subee128 9 місяців тому +1

    Thanks

  • @kamalasowmya7120
    @kamalasowmya7120 10 місяців тому

    could u do the follow up question?

    • @nikoo28
      @nikoo28  10 місяців тому

      Yes I will

  • @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.

  • @jegankingmaker9184
    @jegankingmaker9184 Рік тому +1

    let sunsequence=(str1,str2)=>{
    let fam=[]
    for(let i = 0; i

  • @leetcode650
    @leetcode650 11 місяців тому

    could u do the follow up question?

    • @nikoo28
      @nikoo28  10 місяців тому

      will do that soon, it got added recently after I posted the video.