Merge k Sorted Lists || Divide & Conquer || Priority Queue || Google Interview Question
VloĆŸit
- Äas pĆidĂĄn 28. 07. 2024
- In this video, I'll talk about how to solve - 23. Merge k Sorted Lists - In which i teach about 5 Ways to solve this problem and reach to the optimal solution.
Approach & Complete Inutuition
Method 1: Brute Force
Method 2: Compare K elements One By One
Method 3: Compare K elements by Priority Queue
Method 4: Merge 2 Lists at a time
Method 5: Merge K lists by Divide & Conquer (Most Optimal)
Let's Connect:
đLinkedin: / aryan-mittal-0077
đž Instagram: / aryan_mittal_007
đ±Telegram : t.me/aryan_mittal_group
Resources you can try:
Learn Coding: âą Complete RoadMap for C...
đ„Channel Playlists
Dynamic Programming: âą Complete Dynamic Progr...
Bit Manipulation: âą Complete BIT MANIPULAT...
Mathematics for DSA: âą Complete Mathematics f...
Leetcode Top Interview Questions: âą FAANG & Leetcode Inter...
Codeforces Problem B Ladder: âą Complete PROBLEM B LAD...
Codeforces Problem C Ladder: âą Codeforces PROBLEM C L...
Codeforces Problem D Ladder: âą Complete PROBLEM D LAD...
About Channel:
We teach about how you can grow in life & educate about programming in Fun way.
About Me:
I am Aryan Mittal - a Software Engineer, 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
1:46 Method 1: Brute Force
2:32 Method 2: Compare K elements One By One
4:43 Method 3: Compare K elements by Priority Queue
7:42 Method 3 - Code
9:46 Method 4: Merge 2 Lists at a time
13:17 Method 5: Merge K lists by Divide & Conquer (Most Optimal)
17:48 Method 5 - Code
âš Hashtags âš
Merge k Sorted Lists || Divide & Conquer || Priority Queue || Google Interview Question
#skills #college #studentslife #students #teenager #life #teenagers #students
#programming #Interviews #leetcode #faang
Code & Notes: leetcode.com/problems/merge-k-sorted-lists/solutions/3286058/image-explanation-5-methods-divide-conquer-priority-queue-complete-intuition/
Loved the video as usual bro
Best explanation possible bro, just discovered your channel today. Your patience while explaining is soo goodđ
great explanation, never saw someone explain so patiently from brute force to best approach : )
Thanks đ
Loved it!
Amazing!
can you give code for 2nd approach?