Hard problem, fun to do!
Problem: https://leetcode.com/problems/parallel-courses-ii/
My writeup: https://leetcode.com/problems/parallel-courses-ii/discuss/1373540/
0:00 Problem Discussion
3:16 Interesting Test Case
5:21 Code: Data Structures Setup
8:15 Code: Nodes & Bit-Masks
11:44 Code: Recursion - Why?
13:27 Code: Recursion - Available Nodes
15:11 Code: Recursion - Combinations
16:40 Code: Recursion - Handling 'k' nodes
19:47 Code: Completion, Sanity Checks
20:57 Code: Caching
21:27 Discussion
==================================================
Stuff I use:
My mic: https://amzn.to/3Fsx1Ok
My laptop: https://amzn.to/3oHfqw4
My headphones: https://amzn.to/3BrwTfI
My pen-tablet: https://amzn.to/3lCIZx6
NOTE: These are affiliate links.
- Doesn't cost you anything
- Gives me a kickback if you buy this (or, anything on Amazon) using this link in the next 24 hours :)
==================================================
Follow:
LeetCode: https://leetcode.com/chaudhary1337/
GitHub: https://github.com/chaudhary1337
LinkedIn: https://www.linkedin.com/in/tanishq-chaudhary-a2035119b/
My Website: https://chaudhary1337.com/
My (old) Website: http://chaudhary1337.github.io/
#LeetCode #coding #programming #chaudhary1337
==================================================