Merge k Sorted Lists || Divide & Conquer || Priority Queue || Google Interview Question

SdĂ­let
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

Komentáƙe • 8

  • @ARYANMITTAL
    @ARYANMITTAL  Pƙed rokem +1

    Code & Notes: leetcode.com/problems/merge-k-sorted-lists/solutions/3286058/image-explanation-5-methods-divide-conquer-priority-queue-complete-intuition/

  • @mukulkhanna5071
    @mukulkhanna5071 Pƙed 5 měsĂ­ci +1

    Loved the video as usual bro

  • @ms5877
    @ms5877 Pƙed rokem +1

    Best explanation possible bro, just discovered your channel today. Your patience while explaining is soo good🙂

  • @Ankita-sd5gp
    @Ankita-sd5gp Pƙed rokem +1

    great explanation, never saw someone explain so patiently from brute force to best approach : )

  • @aryanyadav3926
    @aryanyadav3926 Pƙed rokem

    Loved it!

  • @minkim2576
    @minkim2576 Pƙed rokem

    Amazing!

  • @gilfoyle2211
    @gilfoyle2211 Pƙed rokem

    can you give code for 2nd approach?