3202. Find the Maximum Length of Valid Subsequence II | Weekly Leetcode 404

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 9

  • @tanishgotti3659
    @tanishgotti3659 2 месяца назад +1

    For each row of your time complexity analysis you are keeping V1i constant. But you are not considering the "cnt" part of your pseudo code wherein you will need to iterate over the bucket of each V1i and V2i pair.

  • @quyhoaphantruong7453
    @quyhoaphantruong7453 4 месяца назад +4

    The analysis of time complexity part was brilliant !!!

  • @nabajyotimajumdar4511
    @nabajyotimajumdar4511 4 месяца назад +2

    Such a nice solution! I was kinda confused after seeing the dp solution

  • @simardeepsinghmudhar7065
    @simardeepsinghmudhar7065 4 месяца назад +2

    Thank you for the curated Segment Tree word document, will follow and practice from it.

  • @biplavoraon9702
    @biplavoraon9702 4 месяца назад

    Very intuitive solution. You have earned a subscriber!

  • @sanjai_rs7
    @sanjai_rs7 4 месяца назад

    Absolute Brilliance💥

  • @Rancha51
    @Rancha51 2 месяца назад

    How do you even come up with these solutions ?

  • @AnandKumar-kz3ls
    @AnandKumar-kz3ls 4 месяца назад +3

    one doubt ( a + b ) %k == (a%k + b%k)%k can you please explain why you're eliminating %k here

    • @atharvakj
      @atharvakj 4 месяца назад +1

      it will get eliminated from LHS and RHS.