Leetcode Weekly Contest 430 || Leetcode Contest || Python

Поділитися
Вставка
  • Опубліковано 16 січ 2025

КОМЕНТАРІ • 10

  • @prathamchelaramani2730
    @prathamchelaramani2730 18 днів тому +2

    Thanks Prateek Bhaiya, understood your solutions in first go!!!

  • @rohandsouza9147
    @rohandsouza9147 18 днів тому +1

    good explanation for q3, thankss

  • @tarun-d5e
    @tarun-d5e 18 днів тому +1

    Why did you fix q = r - 2, what if I wanted something like p = 3, q = 7 and r = n - 6 , s = n - 3. Can you explain your intuition behind it?

    • @prateekgoel7248
      @prateekgoel7248  18 днів тому

      It is just for providing a value to q, after some iteration it will hit p=3 and q=7 as well.

    • @tarun-d5e
      @tarun-d5e 18 днів тому

      @@prateekgoel7248 My question is that when you fix q = r - 2, we will get different combinations of q and p which is fine.
      But What if there exists a combination like p = 3, q = 7, r = n - 6, s = n - 3. I might get p=3, q=7 after some iterations but it wont be with the required combinations of r and s .right? Do I make sense?

    • @prateekgoel7248
      @prateekgoel7248  18 днів тому +1

      r and s, will be already computer till that time.
      So when we reach the p=3 and q=7, it will add the answer.
      If you have any other doubts, please join our discussion group and we can discuss the solution:
      chat.whatsapp.com/CBhszObdhii7T6hDbgbXgp

    • @tarun-d5e
      @tarun-d5e 18 днів тому

      @@prateekgoel7248 Ohkkkk, I understood, I was thinking differently. Thank you!

  • @ankitatiwary4663
    @ankitatiwary4663 18 днів тому +1

    Thanks bhaiya

  • @Maximus-oox
    @Maximus-oox 18 днів тому +1

    Brother can u explain using notepad or some other way from next contest. I know its too much to ask❤

    • @prateekgoel7248
      @prateekgoel7248  18 днів тому +1

      Sure bro, i will try to do that from next contest.