Quick Sort | Simple Story | Story To Code | Recursion Concepts And Questions | Video 9

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



Duration: 47:40
545 views
41


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

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

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

๐ŸŽฅ Welcome to the 9th Video of my Recursion Playlist! ๐Ÿš€ In this enlightening video, we will solve a very famous sorting problem "QuickSort" with the help of Recursion. We will start with a Simple story understanding with Quick Sort with a simple Diagram and then we will be Converting Story to code and writing the recursive code for Quick Sort and also I will also be explaining the Time and Space Complexity of the code ๐ŸŒ

๐Ÿ” What's Inside?

๐Ÿ”— Simple story understanding with Quick Sort with a Tree Diagram

๐Ÿ”— Converting Story to code and writing the recursive code for Quick 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 : The algorithm works by selecting a "pivot" element from the array and partitioning the other elements into two sub-arrays based on whether they are less than or greater than the pivot. This process is then applied recursively to the sub-arrays. The key to QuickSort's efficiency lies in its ability to sort small partitions independently and in-place, minimizing the need for additional memory. While QuickSort has excellent average-case performance, its worst-case time complexity can be O(n^2) if the pivot selection consistently results in unbalanced partitions. To mitigate this, various techniques such as randomized pivot selection are often employed. Overall, QuickSort is a versatile and efficient sorting algorithm, widely used in practice for its speed and simplicity.

โ•”โ•โ•ฆโ•—โ•”โ•ฆโ•—โ•”โ•โ•ฆโ•โ•ฆโ•ฆโ•ฆโ•ฆโ•—โ•”โ•โ•—
โ•‘โ•šโ•ฃโ•‘โ•‘โ•‘โ•šโ•ฃโ•šโ•ฃโ•”โ•ฃโ•”โ•ฃโ•‘โ•šโ•ฃโ•โ•ฃ
โ• โ•—โ•‘โ•šโ•โ•‘โ•‘โ• โ•—โ•‘โ•šโ•ฃโ•‘โ•‘โ•‘โ•‘โ•‘โ•โ•ฃ
โ•šโ•โ•ฉโ•โ•โ•ฉโ•โ•ฉโ•โ•ฉโ•โ•ฉโ•โ•šโ•ฉโ•โ•ฉโ•โ•

โœจ Timelinesโœจ
00:00 - Introduction
00:12 - Motivation (Bhashan)
01:03 - What is Quick Sort - 3 Steps
02:18 - Understanding from an Example
10:08 - Story to code
15:16 - Example to understand Partitioning
21:11 - Partitioning code intuition
29:38 - Detailed Time & Space Complexity
31:53 - Deriving Time Complexity using equation
44:19 - Coding live


#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-19Flattening a Linked List | Magic Of Recursion | Recursion Concepts And Questions | Video 13
2024-02-18Power of Two | Multiple Approaches | Leetcode 231
2024-02-18Meeting Rooms III | Detailed Intuition | Brute Force | Optimal | Leetcode 2402
2024-02-16Furthest Building You Can Reach | What is Lazy Greedy | Recursion | Memoization | Leetcode 1642
2024-02-16Flatten BST to sorted list | Magic Of Recursion | Recursion Concepts And Questions | Video 12
2024-02-16Least Number of Unique Integers after K Removals | 3 Approaches | Greedy | Leetcode 1481
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