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

  Рет қаралды 9,025

NeetCodeIO

NeetCodeIO

Күн бұрын

Solving leetcode 1359 - count all valid pickup and delivery options, today's daily leetcode problem on september 9th.
🚀 neetcode.io/ - A better way to prepare for Coding Interviews
🥷 Discord: / discord
🐦 Twitter: / neetcode1
🐮 Support the channel: / neetcode
⭐ BLIND-75 PLAYLIST: • Two Sum - Leetcode 1 -...
💡 DYNAMIC PROGRAMMING PLAYLIST: • House Robber - Leetco...
Problem Link: leetcode.com/problems/count-a...
0:00 - Read the problem
0:30 - Drawing Explanation
6:58 - Coding Explanation
leetcode 1359
#neetcode #leetcode #python

Пікірлер: 42
@coldsky_
@coldsky_ 11 ай бұрын
Really good solution! Definitely want to see a discrete math course :D
@akhilchauhan9417
@akhilchauhan9417 11 ай бұрын
Yes for Discreet Maths. Especially struggle with recurrence relation.
@VidyaBhandary
@VidyaBhandary 11 ай бұрын
Yes would definitely appreciate a discrete math playlist. Your teaching style is simply awesome 💯
@LOVE-kf9xi
@LOVE-kf9xi 11 ай бұрын
It is a must , I'd love to see the discrete math playlist!
@pushpamudalkar6756
@pushpamudalkar6756 11 ай бұрын
Really good explanation! You made the hardest problem seem like a piece of cake
@light_70
@light_70 11 ай бұрын
That intuition when you cancel out the possibility of invalid arrangement(divide by 2) was great.
@user-yj2ju9up8o
@user-yj2ju9up8o 11 ай бұрын
Thanks for the explanation. I was struggling with this daily problem and your video was really helpful.
@MP-ny3ep
@MP-ny3ep 11 ай бұрын
Great explanation as always!! Thank you!
@becomingbesthackerprogramm4644
@becomingbesthackerprogramm4644 11 ай бұрын
Please get a maths course , it's a must
@StellasAdi18
@StellasAdi18 11 ай бұрын
That was amazing solution. Thanks for the intuition.
@shreyaspathak1267
@shreyaspathak1267 11 ай бұрын
I'd love to see the discrete math videos
@FullMetalAlgorithmist
@FullMetalAlgorithmist 10 ай бұрын
Woah!!!! Amazing explaination.
@becomingbesthackerprogramm4644
@becomingbesthackerprogramm4644 11 ай бұрын
Really need it , I suffer sm with maths problem 🤧
@menasafwat7897
@menasafwat7897 11 ай бұрын
you are genius man , continue you are the best 😎😎
@aadil4236
@aadil4236 11 ай бұрын
Yes, defenetly want Discrete Math course!!
@amen652
@amen652 10 ай бұрын
A discrete math refresh course would def be nice!
@patelmanan96
@patelmanan96 8 ай бұрын
Yes, please make the discrete math video
@uptwist2260
@uptwist2260 11 ай бұрын
Thanks for the daily
@kshitijgarg2609
@kshitijgarg2609 11 ай бұрын
solid explanation
@palashsharma26
@palashsharma26 11 ай бұрын
Yes please video on discrete math
@omkarjadhav6183
@omkarjadhav6183 11 ай бұрын
Would love playlist on descrete maths
@Platcode797
@Platcode797 11 ай бұрын
Please make discrete maths series, Thanks for the solution
@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?
@ChadBryant_G3
@ChadBryant_G3 9 ай бұрын
Yes to discrete math course!
@CS_n00b
@CS_n00b 8 ай бұрын
non trivial combinatorics problems playlist would be very useful
@GuruPrasadShukla
@GuruPrasadShukla 11 ай бұрын
nice explaination bro support from india
@arunvijay2279
@arunvijay2279 8 ай бұрын
please do separate series for discrete mathematics
@krateskim4169
@krateskim4169 11 ай бұрын
Awesome
@young7529
@young7529 11 ай бұрын
definitely want to see the discrete math course
@AdityaGarud-sm7lw
@AdityaGarud-sm7lw 11 ай бұрын
yes we want discrete math crash course
@IK-xk7ex
@IK-xk7ex 11 ай бұрын
I got this problem in my today's Days Challenge
@jamesabasifreke
@jamesabasifreke 11 ай бұрын
Discrete math please thanks!
@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.
@TheMadTech
@TheMadTech 11 ай бұрын
much needed discrete mathematics
@abhis1560
@abhis1560 11 ай бұрын
Please do make maths necessary for algorithms videos please. Not just discrete mathematics
@vijayj1997
@vijayj1997 11 ай бұрын
Need discrete math course
@devkumar9889
@devkumar9889 10 ай бұрын
It was simple 10th grade mathematics
@SANDEEPKUMAR-in6li
@SANDEEPKUMAR-in6li 11 ай бұрын
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 ай бұрын
FIRST
Candy - Leetcode 135 - Python
13:45
NeetCodeIO
Рет қаралды 26 М.
Maximum Value of K Coins from Piles - Leetcode 2218 - Python
18:04
Son ❤️ #shorts by Leisi Show
00:41
Leisi Show
Рет қаралды 7 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 12 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,8 МЛН
Number of Music Playlists - Leetcode 920 - Python
21:36
NeetCodeIO
Рет қаралды 12 М.
Why is everyone LYING?
7:56
NeetCodeIO
Рет қаралды 194 М.
F.R.I.E.N.D.S. Funny Moments from Season 7
28:00
TV Addict
Рет қаралды 1,9 МЛН
Maximum Length of Pair Chain - Leetcode 646 - Python
13:46
NeetCodeIO
Рет қаралды 7 М.
Longest String Chain - Leetcode 1048 - Python
15:34
NeetCodeIO
Рет қаралды 8 М.
541 Leetcode problems are NOT enough.
7:12
Sahil & Sarra
Рет қаралды 158 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 852 М.
Naming a Company - Leetcode 2306 - Python
16:38
NeetCodeIO
Рет қаралды 10 М.