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

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ส.ค. 2024

ความคิดเห็น • 43

  • @coldsky_
    @coldsky_ 11 หลายเดือนก่อน +41

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

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

  • @akhilchauhan9417
    @akhilchauhan9417 11 หลายเดือนก่อน +11

    Yes for Discreet Maths. Especially struggle with recurrence relation.

  • @light_70
    @light_70 11 หลายเดือนก่อน

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

  • @becomingbesthackerprogramm4644
    @becomingbesthackerprogramm4644 11 หลายเดือนก่อน +4

    Please get a maths course , it's a must

  • @shreyaspathak1267
    @shreyaspathak1267 11 หลายเดือนก่อน +2

    I'd love to see the discrete math videos

  • @pushpamudalkar6756
    @pushpamudalkar6756 11 หลายเดือนก่อน +1

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

  • @becomingbesthackerprogramm4644
    @becomingbesthackerprogramm4644 11 หลายเดือนก่อน +2

    Really need it , I suffer sm with maths problem 🤧

  • @user-yj2ju9up8o
    @user-yj2ju9up8o 11 หลายเดือนก่อน

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

  • @aadil4236
    @aadil4236 11 หลายเดือนก่อน +1

    Yes, defenetly want Discrete Math course!!

  • @CS_n00b
    @CS_n00b 9 หลายเดือนก่อน

    non trivial combinatorics problems playlist would be very useful

  • @amen652
    @amen652 11 หลายเดือนก่อน

    A discrete math refresh course would def be nice!

  • @patelmanan96
    @patelmanan96 8 หลายเดือนก่อน

    Yes, please make the discrete math video

  • @omkarjadhav6183
    @omkarjadhav6183 11 หลายเดือนก่อน +1

    Would love playlist on descrete maths

  • @ChadBryant_G3
    @ChadBryant_G3 9 หลายเดือนก่อน

    Yes to discrete math course!

  • @palashsharma26
    @palashsharma26 11 หลายเดือนก่อน +1

    Yes please video on discrete math

  • @Platcode797
    @Platcode797 11 หลายเดือนก่อน +1

    Please make discrete maths series, Thanks for the solution

  • @StellasAdi18
    @StellasAdi18 11 หลายเดือนก่อน

    That was amazing solution. Thanks for the intuition.

  • @MP-ny3ep
    @MP-ny3ep 11 หลายเดือนก่อน

    Great explanation as always!! Thank you!

  • @FullMetalAlgorithmist
    @FullMetalAlgorithmist 11 หลายเดือนก่อน

    Woah!!!! Amazing explaination.

  • @arunvijay2279
    @arunvijay2279 9 หลายเดือนก่อน

    please do separate series for discrete mathematics

  • @menasafwat7897
    @menasafwat7897 11 หลายเดือนก่อน

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

  • @jamesabasifreke
    @jamesabasifreke 11 หลายเดือนก่อน +3

    Discrete math please thanks!

  • @AdityaGarud-sm7lw
    @AdityaGarud-sm7lw 11 หลายเดือนก่อน +1

    yes we want discrete math crash course

  • @young7529
    @young7529 11 หลายเดือนก่อน +3

    definitely want to see the discrete math course

  • @kshitijgarg2609
    @kshitijgarg2609 11 หลายเดือนก่อน

    solid explanation

  • @uptwist2260
    @uptwist2260 11 หลายเดือนก่อน

    Thanks for the daily

  • @TheMadTech
    @TheMadTech 11 หลายเดือนก่อน +1

    much needed discrete mathematics

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

  • @GuruPrasadShukla
    @GuruPrasadShukla 11 หลายเดือนก่อน

    nice explaination bro
    support from india

  • @IK-xk7ex
    @IK-xk7ex 11 หลายเดือนก่อน

    I got this problem in my today's Days Challenge

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

  • @bigboyshassen59
    @bigboyshassen59 3 วันที่ผ่านมา

    whats up future doordashers

  • @abhis1560
    @abhis1560 11 หลายเดือนก่อน

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

  • @vijayj1997
    @vijayj1997 11 หลายเดือนก่อน +1

    Need discrete math course

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