Computer Science · Free course
Strivers A2Z DSA Course: Part 1
A comprehensive, structured guide to mastering Data Structures and Algorithms from scratch. This course covers C++ basics, time complexity, recursion, hashing, and fundamental sorting algorithms.
by take U forward · Watch the original on YouTube
- beginner
- 54 lessons
- 9.3 hours of video
- 21 days at 30 min/day
- 14 videos
Loading course start…
What you’ll learn
- Master C++ syntax and standard library functions for competitive programming.
- Analyze and optimize code using Big O notation for time and space complexity.
- Implement recursive solutions for complex problems using functional and parameterised approaches.
- Utilize hashing techniques and maps to solve frequency and counting problems efficiently.
- Understand and implement fundamental sorting algorithms like Selection, Bubble, and Insertion sort.
Your daily curriculum
A plan for about 30 minutes a day, including time for notes and questions. Adjust your pace in your own copy.
Day 1 · about 37 min · Video 1 · 0:00 – Video 3 · 12:25
1. How to study this DSA course
Video 1 · 0:00 – Video 1 · 4:09Video 1: Don't watch my A2Z DSA Course
Learn the recommended study path, how to use the course website, and why structured learning is crucial.
- Use the official website (takeuforward.org) for a structured learning path. Video 1 · 0:00
- Focus on problem-solving ability rather than just watching videos. Video 1 · 1:33
- Utilize the provided resources for mock interviews and resume reviews. Video 1 · 3:07
2. Best practices for problem solving
Video 1 · 4:09 – Video 2 · 0:00Video 1: Don't watch my A2Z DSA Course
Understand how to approach problems, handle misinformation, and utilize platforms like LeetCode.
- The course is language-agnostic but uses C++ for demonstrations. Video 1 · 4:09
- Start with easy problems, move to medium, and tackle hard problems last. Video 1 · 5:43
- Participate in contests on platforms like LeetCode and CodeForces. Video 1 · 6:48
3. Setting up VS Code for C++ and Java
Video 2 · 0:00 – Video 3 · 0:00Video 2: How to setup VS code for DSA and CP | Input / Output split format
Configure VS Code for efficient coding, including extensions and split-screen input/output.
- Install necessary language extensions (C++ or Java) in VS Code. Video 2 · 2:05
- Use 'Split Down' editor layout to view input and output simultaneously. Video 2 · 3:08
- Configure tasks.json to automate code execution and input handling. Video 2 · 4:40
4. C++ Basics: Skeleton and I/O
Video 3 · 0:00 – Video 3 · 12:25Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1
Learn the basic structure of a C++ program and how to handle input and output.
- Use #include <iostream> for basic input/output operations. Video 3 · 5:39
- The main function is the entry point of any C++ program. Video 3 · 6:42
- Use 'cin' for input and 'cout' for output. Video 3 · 9:49
Day 2 · about 30 min · Video 3 · 12:25 – Video 3 · 36:07
5. Understanding Data Types
Video 3 · 12:25 – Video 3 · 21:45Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1
Explore fundamental data types and how to store different kinds of information.
- Integer types have specific ranges; use 'long long' for larger numbers. Video 3 · 13:28
- Use 'float' and 'double' for decimal numbers. Video 3 · 15:00
- Use 'string' and 'getline' to read full lines of text. Video 3 · 16:01
6. Conditional Statements: If-Else
Video 3 · 21:45 – Video 3 · 36:07Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1
Master decision-making in code using if-else and logical operators.
- If-else blocks allow conditional execution of code. Video 3 · 22:45
- Use '&&' (AND) to combine multiple conditions. Video 3 · 26:50
- Else-if ladders help check multiple sequential conditions. Video 3 · 27:53
Day 3 · about 32 min · Video 3 · 36:07 – Video 3 · 1:01:02
7. Advanced Conditionals: Switch and Nested If
Video 3 · 36:07 – Video 3 · 39:45Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1
Learn to use switch statements and nested logic for complex conditions.
- Switch statements are an alternative to if-else for specific cases. Video 3 · 36:07
- Nested if-else allows placing conditionals inside other conditionals. Video 3 · 36:07
- Always use 'break' in switch cases to prevent fall-through. Video 3 · 37:10
8. Introduction to Arrays and Strings
Video 3 · 39:45 – Video 3 · 51:46Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1
Understand how to store collections of data using arrays and strings.
- Arrays store multiple elements of the same type in contiguous memory. Video 3 · 41:20
- 2D arrays are essentially arrays of arrays, useful for matrices. Video 3 · 46:34
- Strings are collections of characters that can be accessed by index. Video 3 · 49:11
9. Mastering Loops: For and While
Video 3 · 51:46 – Video 3 · 1:01:02Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1
Learn to automate repetitive tasks using for, while, and do-while loops.
- For loops are ideal when the number of iterations is known. Video 3 · 53:17
- While loops continue as long as a condition is true. Video 3 · 57:26
- Do-while loops execute at least once before checking the condition. Video 3 · 1:00:02
Day 4 · about 32 min · Video 3 · 1:01:02 – Video 4 · 0:00
10. Functions: Pass by Value vs Reference (part 1 of 2)
Video 3 · 1:01:02 – Video 3 · 1:14:31Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1
Understand modular programming with functions and memory management.
- Functions improve code readability and reusability. Video 3 · 1:02:34
11. Functions: Pass by Value vs Reference (part 2 of 2)
Video 3 · 1:14:31 – Video 4 · 0:00Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1
Understand modular programming with functions and memory management.
- Pass by value creates a copy; pass by reference modifies the original. Video 3 · 1:14:31
- Arrays are always passed by reference in C++. Video 3 · 1:24:03
Day 5 · about 34 min · Video 4 · 0:00 – Video 4 · 26:37
12. Time Complexity Fundamentals
Video 4 · 0:00 – Video 4 · 7:49Video 4: Time and Space Complexity - Strivers A2Z DSA Course
Define time complexity and understand why it is crucial for evaluating code efficiency.
- Always analyze code based on the worst-case scenario. Video 4 · 0:00
- Ignore constants and lower-order terms when calculating Big O. Video 4 · 0:00
- Time complexity is the rate at which execution time increases with input size. Video 4 · 3:40
13. Big O Notation and Rules (part 1 of 2)
Video 4 · 7:49 – Video 4 · 17:13Video 4: Time and Space Complexity - Strivers A2Z DSA Course
Learn the rules for calculating Big O notation for different code structures.
- Big O notation represents the upper bound of the algorithm's growth. Video 4 · 7:49
- A simple loop running N times results in O(N) complexity. Video 4 · 10:25
14. Big O Notation and Rules (part 2 of 2)
Video 4 · 17:13 – Video 4 · 26:37Video 4: Time and Space Complexity - Strivers A2Z DSA Course
Learn the rules for calculating Big O notation for different code structures.
- Nested loops usually result in O(N^2) complexity. Video 4 · 21:21
Day 6 · about 25 min · Video 4 · 26:37 – Video 5 · 11:22
15. Space Complexity and Best Practices
Video 4 · 26:37 – Video 5 · 0:00Video 4: Time and Space Complexity - Strivers A2Z DSA Course
Understand how to calculate space complexity and the importance of auxiliary space.
- Space complexity = Auxiliary space + Input space. Video 4 · 26:37
- Avoid manipulating input data to save space; it's bad practice. Video 4 · 30:49
- A time limit of 1 second usually allows for roughly 10^8 operations. Video 4 · 33:23
16. Strategy for Pattern Solving
Video 5 · 0:00 – Video 5 · 11:22Video 5: Solve any Pattern Question - Trick Explained | 22 Patterns in 1 Shot | Strivers A2Z DSA Course
Learn the 4-step framework to solve any nested loop pattern problem.
- Outer loop handles the number of rows. Video 5 · 1:39
- Inner loop handles the content printed per row. Video 5 · 3:15
- Observe symmetry in patterns to simplify logic. Video 5 · 4:21
Day 7 · about 35 min · Video 5 · 11:22 – Video 5 · 39:10
17. Basic Patterns (1-6)
Video 5 · 11:22 – Video 5 · 25:27Video 5: Solve any Pattern Question - Trick Explained | 22 Patterns in 1 Shot | Strivers A2Z DSA Course
Apply the framework to solve fundamental square and triangular patterns.
- Online compilers often run code against multiple test cases. Video 5 · 12:57
- Pattern logic often relates directly to the row index (i). Video 5 · 16:45
- Inverted triangles require adjusting the inner loop range. Video 5 · 22:50
18. Symmetrical Patterns (7-10)
Video 5 · 25:27 – Video 5 · 39:10Video 5: Solve any Pattern Question - Trick Explained | 22 Patterns in 1 Shot | Strivers A2Z DSA Course
Solve complex symmetrical patterns using mathematical formulas for spaces and stars.
- Calculate spaces and stars based on row index (i) and total rows (n). Video 5 · 28:20
- Symmetrical patterns often require two distinct phases (increasing/decreasing). Video 5 · 35:17
- Use 2N-1 for the outer loop range in symmetrical patterns. Video 5 · 36:23
Day 8 · about 28 min · Video 5 · 39:10 – Video 5 · 1:01:25
19. Number and Character Patterns (11-14)
Video 5 · 39:10 – Video 5 · 50:28Video 5: Solve any Pattern Question - Trick Explained | 22 Patterns in 1 Shot | Strivers A2Z DSA Course
Extend pattern logic to include numbers and characters.
- Binary patterns (0/1) can be solved using flipping logic. Video 5 · 40:46
- Number patterns often use row indices to determine values. Video 5 · 43:31
- Character patterns use ASCII values (A=65) for printing. Video 5 · 48:52
20. Advanced Character Patterns (15-18)
Video 5 · 50:28 – Video 5 · 1:01:25Video 5: Solve any Pattern Question - Trick Explained | 22 Patterns in 1 Shot | Strivers A2Z DSA Course
Master advanced character-based patterns using ASCII arithmetic.
- Use 'A + i' logic to shift characters based on row. Video 5 · 53:13
- Symmetrical character patterns require tracking a 'breakpoint'. Video 5 · 58:33
- Reverse character patterns subtract from the last character. Video 5 · 1:00:21
Day 9 · about 33 min · Video 5 · 1:01:25 – Video 6 · 5:44
21. Complex Symmetrical Patterns (19-21)
Video 5 · 1:01:25 – Video 5 · 1:15:37Video 5: Solve any Pattern Question - Trick Explained | 22 Patterns in 1 Shot | Strivers A2Z DSA Course
Solve complex patterns involving multiple segments and boundaries.
- Symmetry can be broken into top and bottom halves. Video 5 · 1:03:02
- Boundary patterns require specific conditions for printing stars. Video 5 · 1:12:59
22. The Final Pattern Challenge
Video 5 · 1:15:37 – Video 6 · 0:00Video 5: Solve any Pattern Question - Trick Explained | 22 Patterns in 1 Shot | Strivers A2Z DSA Course
Solve the most complex pattern using distance-based logic.
- Use distance from boundaries to determine values in a matrix. Video 5 · 1:18:23
- The minimum distance to any of the four sides defines the value. Video 5 · 1:19:28
23. Introduction to STL
Video 6 · 0:00 – Video 6 · 5:44Video 6: Complete C++ STL in 1 Video | Time Complexity and Notes
Understand the Standard Template Library and its components.
- STL is a collection of algorithms, containers, and iterators. Video 6 · 0:00
- Use #include <bits/stdc++.h> to include all standard libraries. Video 6 · 1:33
Day 10 · about 31 min · Video 6 · 5:44 – Video 6 · 30:20
24. Pairs and Vectors (part 1 of 2)
Video 6 · 5:44 – Video 6 · 17:32Video 6: Complete C++ STL in 1 Video | Time Complexity and Notes
Learn to use Pairs and Vectors for dynamic data storage.
- Pairs store two values together; access via .first and .second. Video 6 · 5:44
- Vectors are dynamic arrays; use push_back() to add elements. Video 6 · 10:53
25. Pairs and Vectors (part 2 of 2)
Video 6 · 17:32 – Video 6 · 30:20Video 6: Complete C++ STL in 1 Video | Time Complexity and Notes
Learn to use Pairs and Vectors for dynamic data storage.
- Iterators point to memory locations; use '*' to access the value. Video 6 · 17:32
Day 11 · about 31 min · Video 6 · 30:20 – Video 6 · 55:29
26. Lists, Stacks, and Queues
Video 6 · 30:20 – Video 6 · 36:57Video 6: Complete C++ STL in 1 Video | Time Complexity and Notes
Explore container types with specific access patterns.
- Lists provide efficient front and back operations. Video 6 · 30:20
- Stacks follow LIFO (Last In, First Out) order. Video 6 · 31:52
- Queues follow FIFO (First In, First Out) order. Video 6 · 34:23
27. Priority Queues and Sets
Video 6 · 36:57 – Video 6 · 47:22Video 6: Complete C++ STL in 1 Video | Time Complexity and Notes
Understand ordered and priority-based containers.
- Priority Queues maintain elements in a specific order (max/min). Video 6 · 36:57
- Sets store unique elements in sorted order. Video 6 · 38:31
- Multisets allow duplicate elements while remaining sorted. Video 6 · 43:43
28. Maps and Unordered Maps
Video 6 · 47:22 – Video 6 · 55:29Video 6: Complete C++ STL in 1 Video | Time Complexity and Notes
Learn key-value storage using Maps.
- Maps store key-value pairs in sorted order of keys. Video 6 · 47:22
- Unordered maps provide O(1) average time complexity. Video 6 · 53:58
Day 12 · about 34 min · Video 6 · 55:29 – Video 7 · 14:54
29. Sorting and Permutations
Video 6 · 55:29 – Video 7 · 0:00Video 6: Complete C++ STL in 1 Video | Time Complexity and Notes
Utilize built-in algorithms for sorting and permutations.
- sort(begin, end) sorts a container in O(N log N) time. Video 6 · 55:29
- Use custom comparators for specific sorting requirements. Video 6 · 59:03
- next_permutation() generates the lexicographically next permutation. Video 6 · 1:04:45
30. Digit Extraction Techniques
Video 7 · 0:00 – Video 7 · 14:54Video 7: Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course
Learn how to extract digits from a number using modulo and division.
- Use 'n % 10' to get the last digit. Video 7 · 3:18
- Use 'n / 10' to remove the last digit. Video 7 · 5:00
- The number of digits can be found using log10(n) + 1. Video 7 · 12:10
Day 13 · about 31 min · Video 7 · 14:54 – Video 7 · 39:38
31. Reversing Numbers and Palindromes
Video 7 · 14:54 – Video 7 · 24:30Video 7: Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course
Implement number reversal and palindrome checks.
- Reverse a number by building it digit by digit: (rev * 10) + digit. Video 7 · 17:32
- A palindrome reads the same forwards and backwards. Video 7 · 21:47
- Always store a copy of the original number before modifying it. Video 7 · 22:49
32. Armstrong Numbers and Divisors
Video 7 · 24:30 – Video 7 · 39:38Video 7: Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course
Check for Armstrong numbers and print all divisors efficiently.
- Armstrong number: sum of cubes of digits equals the number. Video 7 · 24:30
- Divisors can be found up to the square root of N. Video 7 · 32:34
- Sorting divisors requires storing them in a list first. Video 7 · 36:55
Day 14 · about 30 min · Video 7 · 39:38 – Video 8 · 0:00
33. Prime Number Checks
Video 7 · 39:38 – Video 7 · 45:05Video 7: Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course
Efficiently check if a number is prime.
- A prime number has exactly two factors: 1 and itself. Video 7 · 39:38
- Check for factors up to sqrt(N) to optimize to O(sqrt(N)). Video 7 · 43:27
34. GCD and Euclidean Algorithm (part 1 of 2)
Video 7 · 45:05 – Video 7 · 53:04Video 7: Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course
Calculate the Greatest Common Divisor using the Euclidean algorithm.
35. GCD and Euclidean Algorithm (part 2 of 2)
Video 7 · 53:04 – Video 8 · 0:00Video 7: Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course
Calculate the Greatest Common Divisor using the Euclidean algorithm.
- GCD(a, b) = GCD(a-b, b) where a > b. Video 7 · 53:04
- When one number becomes 0, the other is the GCD. Video 7 · 55:44
- Optimized Euclidean: GCD(a, b) = GCD(a % b, b). Video 7 · 58:53
Day 15 · about 28 min · Video 8 · 0:00 – Video 9 · 0:00
36. Recursion Fundamentals
Video 8 · 0:00 – Video 8 · 7:12Video 8: Re 1. Introduction to Recursion | Recursion Tree | Stack Space | Strivers A2Z DSA Course
Understand the core concept of recursion where a function calls itself.
- Recursion occurs when a function calls itself. Video 8 · 1:34
- Infinite recursion leads to stack overflow. Video 8 · 5:39
37. Stack Space and Base Conditions
Video 8 · 7:12 – Video 9 · 0:00Video 8: Re 1. Introduction to Recursion | Recursion Tree | Stack Space | Strivers A2Z DSA Course
Learn about the call stack and the importance of base cases.
- The stack stores function calls that are yet to be completed. Video 8 · 7:12
- A base condition is required to stop recursion. Video 8 · 10:45
- A recursion tree visualizes the flow of function calls. Video 8 · 20:02
Day 16 · about 38 min · Video 9 · 0:00 – Video 10 · 7:47
38. Printing Name N Times
Video 9 · 0:00 – Video 9 · 10:28Video 9: Re 2. Problems on Recursion | Strivers A2Z DSA Course
Solve basic recursion problems by printing a name N times.
- Use a base case to stop recursion when i > n. Video 9 · 3:38
- Recursion can replace loops for simple tasks. Video 9 · 8:50
39. Printing Numbers 1 to N and N to 1
Video 9 · 10:28 – Video 10 · 0:00Video 9: Re 2. Problems on Recursion | Strivers A2Z DSA Course
Learn to control the order of execution in recursion.
- Print before the recursive call to print in increasing order. Video 9 · 10:28
- Print after the recursive call to print in decreasing order. Video 9 · 13:02
40. Parameterised Recursion
Video 10 · 0:00 – Video 10 · 7:47Video 10: Re 3. Parameterised and Functional Recursion | Strivers A2Z DSA Course
Use parameters to carry state during recursion.
- Parameterised recursion passes the result through arguments. Video 10 · 2:38
- The base case prints the result once the recursion completes. Video 10 · 5:14
Day 17 · about 37 min · Video 10 · 7:47 – Video 12 · 0:00
41. Functional Recursion
Video 10 · 7:47 – Video 11 · 0:00Video 10: Re 3. Parameterised and Functional Recursion | Strivers A2Z DSA Course
Return values from recursive functions.
- Functional recursion returns a value to the caller. Video 10 · 9:19
- Base case returns a value (e.g., 0 or 1) to stop the chain. Video 10 · 9:19
- Time complexity is O(N) due to N function calls. Video 10 · 17:14
42. Reversing an Array with Recursion
Video 11 · 0:00 – Video 11 · 10:45Video 11: Re 4. Problems on Functional Recursion | Strivers A2Z DSA Course
Reverse an array using two pointers and recursion.
- Use two pointers (l, r) to swap elements. Video 11 · 3:03
- Base case: stop when l >= r. Video 11 · 3:03
- Can also be done with a single pointer i: swap i and n-i-1. Video 11 · 6:40
43. Palindrome Check using Recursion
Video 11 · 10:45 – Video 12 · 0:00Video 11: Re 4. Problems on Functional Recursion | Strivers A2Z DSA Course
Check if a string is a palindrome using recursion.
- Compare characters at i and n-i-1. Video 11 · 13:21
- Return true if i >= n/2. Video 11 · 14:54
Day 18 · about 38 min · Video 12 · 0:00 – Video 13 · 13:59
44. Multiple Recursion Calls: Fibonacci (part 1 of 2)
Video 12 · 0:00 – Video 12 · 10:14Video 12: Re 5. Multiple Recursion Calls | Problems | Strivers A2Z DSA Course
Understand recursion with multiple calls using Fibonacci numbers.
- Fibonacci: f(n) = f(n-1) + f(n-2). Video 12 · 2:33
45. Multiple Recursion Calls: Fibonacci (part 2 of 2)
Video 12 · 10:14 – Video 13 · 0:00Video 12: Re 5. Multiple Recursion Calls | Problems | Strivers A2Z DSA Course
Understand recursion with multiple calls using Fibonacci numbers.
- Multiple recursive calls create a tree-like structure. Video 12 · 10:14
- Time complexity is exponential, O(2^n). Video 12 · 14:21
46. Hashing Fundamentals
Video 13 · 0:00 – Video 13 · 13:59Video 13: Hashing | Maps | Time Complexity | Collisions | Division Rule of Hashing | Strivers A2Z DSA Course
Understand the concept of hashing for efficient data retrieval.
- Brute force frequency counting is O(Q * N). Video 13 · 8:02
- Hashing is pre-storing and fetching data. Video 13 · 9:42
Day 19 · about 42 min · Video 13 · 13:59 – Video 13 · 47:09
47. Array Hashing and Character Hashing (part 1 of 2)
Video 13 · 13:59 – Video 13 · 27:32Video 13: Hashing | Maps | Time Complexity | Collisions | Division Rule of Hashing | Strivers A2Z DSA Course
Implement hashing using arrays for numbers and characters.
- Use a hash array to store frequencies. Video 13 · 16:33
- Global arrays can handle up to 10^7 size. Video 13 · 19:16
48. Array Hashing and Character Hashing (part 2 of 2)
Video 13 · 27:32 – Video 13 · 34:35Video 13: Hashing | Maps | Time Complexity | Collisions | Division Rule of Hashing | Strivers A2Z DSA Course
Implement hashing using arrays for numbers and characters.
- Character hashing uses ASCII values: char - 'a'. Video 13 · 27:32
49. Map Data Structure
Video 13 · 34:35 – Video 13 · 47:09Video 13: Hashing | Maps | Time Complexity | Collisions | Division Rule of Hashing | Strivers A2Z DSA Course
Use Maps for flexible key-value storage.
- Maps store keys in sorted order. Video 13 · 40:02
- Unordered maps use hashing for O(1) average time. Video 13 · 44:28
- Map operations take O(log N) time. Video 13 · 45:31
Day 20 · about 39 min · Video 13 · 47:09 – Video 14 · 18:18
50. Collisions and Division Method
Video 13 · 47:09 – Video 14 · 0:00Video 13: Hashing | Maps | Time Complexity | Collisions | Division Rule of Hashing | Strivers A2Z DSA Course
Understand how hashing handles collisions.
- Division method: key % size. Video 13 · 49:51
- Collision occurs when different keys map to the same index. Video 13 · 52:42
- Chaining is a technique to handle collisions. Video 13 · 54:23
51. Selection Sort (part 1 of 2)
Video 14 · 0:00 – Video 14 · 6:21Video 14: Sorting - Part 1 | Selection Sort, Bubble Sort, Insertion Sort | Strivers A2Z DSA Course
Understand and implement Selection Sort.
52. Selection Sort (part 2 of 2)
Video 14 · 6:21 – Video 14 · 18:18Video 14: Sorting - Part 1 | Selection Sort, Bubble Sort, Insertion Sort | Strivers A2Z DSA Course
Understand and implement Selection Sort.
- Algorithm: Find the minimum and swap it to the front. Video 14 · 6:21
- Time complexity is O(N^2). Video 14 · 16:46
Day 21 · about 32 min · Video 14 · 18:18 – Video 14 · 43:46
53. Bubble Sort
Video 14 · 18:18 – Video 14 · 31:40Video 14: Sorting - Part 1 | Selection Sort, Bubble Sort, Insertion Sort | Strivers A2Z DSA Course
Understand and implement Bubble Sort.
- Algorithm: Repeatedly swap adjacent elements if they are in wrong order. Video 14 · 23:45
- Optimization: Stop if no swaps occur in a pass (O(N) best case). Video 14 · 28:59
54. Insertion Sort
Video 14 · 31:40 – Video 14 · 43:46Video 14: Sorting - Part 1 | Selection Sort, Bubble Sort, Insertion Sort | Strivers A2Z DSA Course
Understand and implement Insertion Sort.
- Algorithm: Take an element and place it in its correct position in the sorted part. Video 14 · 31:40
- Time complexity is O(N^2) worst case, O(N) best case. Video 14 · 41:16
This course is built from a free YouTube playlist by take U forward. The videos play on YouTube, and the lessons, summaries and quizzes are Notelify’s own study notes. Notelify isn’t affiliated with YouTube or the creator. Creators can ask us to remove a course at support@notelifyapp.com.


