Count all Valid Pickup and Delivery Options - Leetcode 1359 - Python

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

КОМЕНТАРІ • 43

  • @coldsky_
    @coldsky_ 11 місяців тому +41

    Really good solution! Definitely want to see a discrete math course :D

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

    Yes for Discreet Maths. Especially struggle with recurrence relation.

  • @VidyaBhandary
    @VidyaBhandary 11 місяців тому +6

    Yes would definitely appreciate a discrete math playlist. Your teaching style is simply awesome 💯

  • @LOVE-kf9xi
    @LOVE-kf9xi 11 місяців тому +11

    It is a must , I'd love to see the discrete math playlist!

  • @becomingbesthackerprogramm4644
    @becomingbesthackerprogramm4644 11 місяців тому +4

    Please get a maths course , it's a must

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

    That intuition when you cancel out the possibility of invalid arrangement(divide by 2) was great.

  • @shreyaspathak1267
    @shreyaspathak1267 11 місяців тому +2

    I'd love to see the discrete math videos

  • @becomingbesthackerprogramm4644
    @becomingbesthackerprogramm4644 11 місяців тому +2

    Really need it , I suffer sm with maths problem 🤧

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

    Really good explanation! You made the hardest problem seem like a piece of cake

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

    Yes, defenetly want Discrete Math course!!

  • @CS_n00b
    @CS_n00b 9 місяців тому

    non trivial combinatorics problems playlist would be very useful

  • @patelmanan96
    @patelmanan96 9 місяців тому

    Yes, please make the discrete math video

  • @user-yj2ju9up8o
    @user-yj2ju9up8o 11 місяців тому

    Thanks for the explanation. I was struggling with this daily problem and your video was really helpful.

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

    Yes to discrete math course!

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

    A discrete math refresh course would def be nice!

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

    Would love playlist on descrete maths

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

    Please make discrete maths series, Thanks for the solution

  • @arunvijay2279
    @arunvijay2279 9 місяців тому

    please do separate series for discrete mathematics

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

    Yes please video on discrete math

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

    Woah!!!! Amazing explaination.

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

    you are genius man , continue you are the best 😎😎

  • @young7529
    @young7529 11 місяців тому +3

    definitely want to see the discrete math course

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

    That was amazing solution. Thanks for the intuition.

  • @AdityaGarud-sm7lw
    @AdityaGarud-sm7lw 11 місяців тому +1

    yes we want discrete math crash course

  • @jamesabasifreke
    @jamesabasifreke 11 місяців тому +3

    Discrete math please thanks!

  • @MP-ny3ep
    @MP-ny3ep 11 місяців тому

    Great explanation as always!! Thank you!

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

    much needed discrete mathematics

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

    Need discrete math course

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

    What is the intuition to reduce slots by 2 at the last line of the while loop. Is it because in each loop we already calculate the pickup and the other delivery is invalid because it can not precede its pickup?

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

    solid explanation

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

    nice explaination bro
    support from india

  • @IK-xk7ex
    @IK-xk7ex 11 місяців тому

    I got this problem in my today's Days Challenge

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

    Thanks for the daily

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

    The solution is so easy to understand, but it is difficult for to to solve using Java as I don't know when to do modulo operations.

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

    Please do make maths necessary for algorithms videos please. Not just discrete mathematics

  • @bigboyshassen59
    @bigboyshassen59 7 днів тому

    whats up future doordashers

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

    Awesome

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

    It was simple 10th grade mathematics

  • @SANDEEPKUMAR-in6li
    @SANDEEPKUMAR-in6li 11 місяців тому +1

    Can you please provide the code in JAVA

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

      class Solution {
      long mod = 1000000007;
      public int countOrders(int n) {
      int slots = 2*n;
      long ans=1;
      while(slots > 0){
      long ops = (slots*(slots-1))/2;
      ops %= mod;
      ans = ans * ops;
      slots = slots-2;
      ans%=mod;
      }
      return (int)ans;
      }
      }

    • @SANDEEPKUMAR-in6li
      @SANDEEPKUMAR-in6li 11 місяців тому

      @@dilipsinghdangwal7035 Thank You

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

    FIRST