368. Largest Divisible Subset | DP | Longest Increasing Subsequence | LIS

  Рет қаралды 3,406

Aryan Mittal

Aryan Mittal

Күн бұрын

In this video, I'll talk about how to solve Leetcode 368. Largest Divisible Subset | DP | LIS
Checkout DSA-169 Series: • Aryan DSA-169 Series |...
100Days 100k Placements: • 100 Days 100K Placement
Let's Connect:
📝Linkedin: / aryan-mittal-0077
📸 Instagram: / ez.pz.dsa
📱Telegram : t.me/aryan_mittal_group
🤖 Github: github.com/aryan-0077
About Me:
I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
✨ Timelines✨
0:00 - Problem Explanation
2:42 - Brute Force
4:39 - Intuition of Sorting & Optimization
11:28 - Linking back to LIS
16:50 - Better Approach
22:29 - Most Optimal Approach
24:00 - Code Explanation
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Пікірлер: 17
@dhruvsakariya3129
@dhruvsakariya3129 5 ай бұрын
Explanied in depth ➕➕➕➕
@ARYANMITTAL
@ARYANMITTAL 5 ай бұрын
I'll say this one though looks easy because of LIS, but it's actually a Medium-Hard Problem, what you guys say?? 🫠
@cs_iitian
@cs_iitian 5 ай бұрын
Agree, We were able to find pattern.
@prudhvirajmacherla9854
@prudhvirajmacherla9854 5 ай бұрын
Can u tell how to start competitive coding
@harshalyallewar
@harshalyallewar 5 ай бұрын
00:01 Finding the largest divisible subset in a given set of distinct positive integers. 02:29 Finding the largest divisible subset using dynamic programming 06:45 Optimizing divisible subset check with consecutive pairs 08:51 Optimizing the process of finding largest divisible subset 13:15 Longest Increasing Subsequence (LIS) is essential in finding the largest divisible subset. 15:28 Finding the largest divisible subset using LIS 19:26 Optimizing space complexity for longest increasing subsequence 21:25 Storing previous indices for LIS 25:13 Understanding bottom-up code for linear DP is crucial 27:00 Optimizing the LIS algorithm with sorting 30:43 Optimization in Brute Force method
@kushal8261
@kushal8261 5 ай бұрын
Perfect explanation! You're the best!
@naveenk2304
@naveenk2304 5 ай бұрын
the only youtuber who never fails to provide the best explanation !
@knowevertythingaboutyou
@knowevertythingaboutyou 5 ай бұрын
kuch bhi
@kartiktiwari185
@kartiktiwari185 5 ай бұрын
Explanation represents his hard work and practice🔥.
@akshitkapoor1039
@akshitkapoor1039 5 ай бұрын
nice you are so consistent
@vladimirdiakonov7314
@vladimirdiakonov7314 5 ай бұрын
best man
@abhayraghuwanshi4869
@abhayraghuwanshi4869 5 ай бұрын
maksad nhi bhoolna friends
@harshal8781
@harshal8781 5 ай бұрын
10:27 💀
@28_saksham41
@28_saksham41 5 ай бұрын
add extra condition where index is -1 after loops
@lethal_bot
@lethal_bot 5 ай бұрын
maksad nahi bhulna hai😂😂😂😂
@AbhishekGupta-ik9ql
@AbhishekGupta-ik9ql 5 ай бұрын
bhai please reply toh dein don.
@AbhishekGupta-ik9ql
@AbhishekGupta-ik9ql 5 ай бұрын
can you please start teaching in Hindi
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 31 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 61 МЛН
Happy 4th of July 😂
00:12
Alyssa's Ways
Рет қаралды 64 МЛН
The Last Algorithms Course You'll Need by ThePrimeagen | Preview
16:44
Frontend Masters
Рет қаралды 311 М.
Leetcode 46. Permutations : Introduction to backtracking
10:06
ComputerBread
Рет қаралды 89 М.
I Melted Wood With Friction
8:44
The Action Lab
Рет қаралды 748 М.
FABIANO SACRIFICES 2 ROOKS AND WINS IN 9 MOVES!
6:07
Chess.com
Рет қаралды 408 М.
DP 43. Longest Increasing Subsequence | Binary Search | Intuition
16:27
Longest Increasing Subsequence in nlogn time
12:03
Tushar Roy - Coding Made Simple
Рет қаралды 218 М.