Merge Sort | Simple Story | Story To Code | Recursion Concepts And Questions | Video 8

Subscribers:
92,300
Published on ● Video Link: https://www.youtube.com/watch?v=-cQxPZfYDWs



Duration: 35:37
408 views
36


iPad PDF Notes - https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/iPad%20PDF%20Notes/Recursion%20Concepts%20%26%20Qns%20-%208.pdf
Whatsapp Community Link : https://www.whatsapp.com/channel/0029Va6kVSjICVfiVdsHgi1A
This is the 8th video of our playlist "Recursion Concepts And Questions". Find the Details below :

Video Name : Merge Sort | Simple Story | Story To Code | Recursion Concepts And Questions
Video # : 8
C++/Java Code Link : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Recursion/Merge%20Sort.cpp
GfG Problem Link : https://www.geeksforgeeks.org/problems/merge-sort/1

πŸ” Unraveling Recursion: A Journey into the Depths of Code

πŸŽ₯ Welcome to the 8th Video of my Recursion Playlist! πŸš€ In this enlightening video, we will solve a very famous recursion problem "Merge Sort" with the help of Recursion. We will start with a Simple story understanding with Merge Sort with a simple Diagram and then we will be Converting Story to code and writing the recursive code for Merge Sort and also I will also be explaining the Time and Space Complexity of the code 🌐

πŸ” What's Inside?

πŸ”— Simple story understanding with Merge Sort with a Tree Diagram

πŸ”— Converting Story to code and writing the recursive code for Merge Sort

πŸ”— Explanation of Time and Space Complexity of the code

πŸ‘©β€πŸ’» Who Should Watch?

This playlist is for everyone but best suited for Freshers who are new to Recursion.

πŸš€ Embark on the Recursive Adventure Now!

My DP Concepts Playlist : https://youtu.be/7eLMOE1jnls
My Graph Concepts Playlist : https://youtu.be/5JGiZnr6B5w
My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
Subscribe to my channel : https://www.youtube.com/@codestorywithMIK
Instagram : https://www.instagram.com/codestorywithmik/
Facebook : https://www.facebook.com/people/codestorywithmik/100090524295846/
Twitter : https://twitter.com/CSwithMIK


Approach Summary : In the code, there are two public methods: merge and mergeSort. The merge method takes an array arr and three indices l, m, and r, and it merges two sorted subarrays within the array, one from index l to m and the other from index m+1 to r, in ascending order. The mergeSort method performs the merge sort on the array arr in the specified range [l, r]. It recursively divides the array into halves until individual elements are reached and then merges them back in a sorted manner using the merge method. This algorithm follows the divide-and-conquer approach, where the array is continuously divided into smaller segments until the base case is reached (single-element arrays), and then the sorted segments are merged to produce the final sorted array. The mergeSort method serves as the entry point for sorting an entire array.

╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
β•‘β•šβ•£β•‘β•‘β•‘β•šβ•£β•šβ•£β•”β•£β•”β•£β•‘β•šβ•£β•β•£
β• β•—β•‘β•šβ•β•‘β•‘β• β•—β•‘β•šβ•£β•‘β•‘β•‘β•‘β•‘β•β•£
β•šβ•β•©β•β•β•©β•β•©β•β•©β•β•©β•β•šβ•©β•β•©β•β•

✨ Timelines✨
00:00 - Introduction
0:12 - Motivation (Bhashan)
0:32 - Merge Sort Intriduction
0:47 - What is Merge Sort
05:16 - Merge Sort Complete Tree Diagram
11:37 - Time Complexity
14:29 - Write the Story
17:03 - Story To Code
18:28 - Merge Function Detailed
29:17 - Space Complexity
30:02 - Live Coding on GFG


#codestorywithMIK
#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview#interviewtips #interviewpreparation #interview_ds_algo #hinglish #github #design #data #google #video #instagram #facebook #leetcode #computerscience #leetcodesolutions #leetcodequestionandanswers #code #learning #dsalgo #dsa #2024 #newyear #RecursionExplained #CodingJourney #Programming101 #TechTalks #AlgorithmMastery #Recursion #Programming #Algorithm #Code #ComputerScience #SoftwareDevelopment #CodingTips #RecursiveFunctions #TechExplained #ProgrammingConcepts #CodeTutorial #LearnToCode #TechEducation #DeveloperCommunity #RecursiveThinking #ProgrammingLogic #ProblemSolving #AlgorithmDesign #CSEducation




Other Videos By codestorywithMIK


2024-02-15Rat in a Maze Problem | Simple Story To Code | Recursion Concepts And Questions | Video 11
2024-02-14Find Polygon With the Largest Perimeter | Thought Process | Greedy | Leetcode 2971
2024-02-14Subsets | Simple Story To Code | Leetcode 78 | Recursion Concepts And Questions | Video 10
2024-02-13Rearrange Array Elements by Sign | 2 Approaches | Why Order Preserve | Leetcode 2149
2024-02-13Quick Sort | Simple Story | Story To Code | Recursion Concepts And Questions | Video 9
2024-02-12Find First Palindromic String in the Array | Multiple Ways | Leetcode 2108
2024-02-11Cherry Pickup II | 3 Approaches | Super Detailed | Leetcode 1463
2024-02-10Tumlog saath ho. Bas kaafi hai ❀️ 18K family #codestorywithmik
2024-02-09Palindromic Substrings | Blueprint | Palindrome Problems | 4 Approaches | Leetcode 647
2024-02-08Largest Divisible Subset | LIS Variant | DP Concepts & Qns-18 | Leetcode-368
2024-02-08Merge Sort | Simple Story | Story To Code | Recursion Concepts And Questions | Video 8
2024-02-07Perfect Squares | Bottom UP | Made Easy | Google | Leetcode 279
2024-02-07Minimum Time to Revert Word to Initial State | Part I | Part II | KMP | Leetcode 3029 | 3031
2024-02-06Tower Of Hanoi | Simple Story | Story To Code | Recursion Concepts And Questions | Video 7
2024-02-06Count the nodes at distance K from leaf | 2 Approaches | Simple Dry Run | GFG POTD
2024-02-05Tail Recursion | Tail call Optimisation | Examples | Recursion Concepts And Questions | Video 5
2024-02-05Time Complexity | Space Complexity | Examples | Recursion Concepts And Questions | Video 4
2024-02-05Recursion Tree | Call Stack | Recursion Concepts And Questions | Video 3
2024-02-05Recursion Leap Of Faith | Examples | Recursion Concepts And Questions | Video 2
2024-02-05Introduction | Recursion Concepts And Questions | Video 1
2024-02-04First Unique Character in a String | Easy | Leetcode 387