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. 1. How to study this DSA course

    Video 1 · 0:00 – Video 1 · 4:09

    Video 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. 2. Best practices for problem solving

    Video 1 · 4:09 – Video 2 · 0:00

    Video 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. 3. Setting up VS Code for C++ and Java

    Video 2 · 0:00 – Video 3 · 0:00

    Video 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. 4. C++ Basics: Skeleton and I/O

    Video 3 · 0:00 – Video 3 · 12:25

    Video 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.

Day 2 · about 30 min · Video 3 · 12:25 – Video 3 · 36:07

  1. 5. Understanding Data Types

    Video 3 · 12:25 – Video 3 · 21:45

    Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1

    Explore fundamental data types and how to store different kinds of information.

  2. 6. Conditional Statements: If-Else

    Video 3 · 21:45 – Video 3 · 36:07

    Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1

    Master decision-making in code using if-else and logical operators.

Day 3 · about 32 min · Video 3 · 36:07 – Video 3 · 1:01:02

  1. 7. Advanced Conditionals: Switch and Nested If

    Video 3 · 36:07 – Video 3 · 39:45

    Video 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
  2. 8. Introduction to Arrays and Strings

    Video 3 · 39:45 – Video 3 · 51:46

    Video 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
  3. 9. Mastering Loops: For and While

    Video 3 · 51:46 – Video 3 · 1:01:02

    Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1

    Learn to automate repetitive tasks using for, while, and do-while loops.

Day 4 · about 32 min · Video 3 · 1:01:02 – Video 4 · 0:00

  1. 10. Functions: Pass by Value vs Reference (part 1 of 2)

    Video 3 · 1:01:02 – Video 3 · 1:14:31

    Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1

    Understand modular programming with functions and memory management.

  2. 11. Functions: Pass by Value vs Reference (part 2 of 2)

    Video 3 · 1:14:31 – Video 4 · 0:00

    Video 3: C++ Basics in One Shot - Strivers A2Z DSA Course - L1

    Understand modular programming with functions and memory management.

Day 5 · about 34 min · Video 4 · 0:00 – Video 4 · 26:37

  1. 12. Time Complexity Fundamentals

    Video 4 · 0:00 – Video 4 · 7:49

    Video 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
  2. 13. Big O Notation and Rules (part 1 of 2)

    Video 4 · 7:49 – Video 4 · 17:13

    Video 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
  3. 14. Big O Notation and Rules (part 2 of 2)

    Video 4 · 17:13 – Video 4 · 26:37

    Video 4: Time and Space Complexity - Strivers A2Z DSA Course

    Learn the rules for calculating Big O notation for different code structures.

Day 6 · about 25 min · Video 4 · 26:37 – Video 5 · 11:22

  1. 15. Space Complexity and Best Practices

    Video 4 · 26:37 – Video 5 · 0:00

    Video 4: Time and Space Complexity - Strivers A2Z DSA Course

    Understand how to calculate space complexity and the importance of auxiliary space.

  2. 16. Strategy for Pattern Solving

    Video 5 · 0:00 – Video 5 · 11:22

    Video 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.

Day 7 · about 35 min · Video 5 · 11:22 – Video 5 · 39:10

  1. 17. Basic Patterns (1-6)

    Video 5 · 11:22 – Video 5 · 25:27

    Video 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.

  2. 18. Symmetrical Patterns (7-10)

    Video 5 · 25:27 – Video 5 · 39:10

    Video 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

  1. 19. Number and Character Patterns (11-14)

    Video 5 · 39:10 – Video 5 · 50:28

    Video 5: Solve any Pattern Question - Trick Explained | 22 Patterns in 1 Shot | Strivers A2Z DSA Course

    Extend pattern logic to include numbers and characters.

  2. 20. Advanced Character Patterns (15-18)

    Video 5 · 50:28 – Video 5 · 1:01:25

    Video 5: Solve any Pattern Question - Trick Explained | 22 Patterns in 1 Shot | Strivers A2Z DSA Course

    Master advanced character-based patterns using ASCII arithmetic.

Day 9 · about 33 min · Video 5 · 1:01:25 – Video 6 · 5:44

  1. 21. Complex Symmetrical Patterns (19-21)

    Video 5 · 1:01:25 – Video 5 · 1:15:37

    Video 5: Solve any Pattern Question - Trick Explained | 22 Patterns in 1 Shot | Strivers A2Z DSA Course

    Solve complex patterns involving multiple segments and boundaries.

  2. 22. The Final Pattern Challenge

    Video 5 · 1:15:37 – Video 6 · 0:00

    Video 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.

  3. 23. Introduction to STL

    Video 6 · 0:00 – Video 6 · 5:44

    Video 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

  1. 24. Pairs and Vectors (part 1 of 2)

    Video 6 · 5:44 – Video 6 · 17:32

    Video 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
  2. 25. Pairs and Vectors (part 2 of 2)

    Video 6 · 17:32 – Video 6 · 30:20

    Video 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

  1. 26. Lists, Stacks, and Queues

    Video 6 · 30:20 – Video 6 · 36:57

    Video 6: Complete C++ STL in 1 Video | Time Complexity and Notes

    Explore container types with specific access patterns.

  2. 27. Priority Queues and Sets

    Video 6 · 36:57 – Video 6 · 47:22

    Video 6: Complete C++ STL in 1 Video | Time Complexity and Notes

    Understand ordered and priority-based containers.

  3. 28. Maps and Unordered Maps

    Video 6 · 47:22 – Video 6 · 55:29

    Video 6: Complete C++ STL in 1 Video | Time Complexity and Notes

    Learn key-value storage using Maps.

Day 12 · about 34 min · Video 6 · 55:29 – Video 7 · 14:54

  1. 29. Sorting and Permutations

    Video 6 · 55:29 – Video 7 · 0:00

    Video 6: Complete C++ STL in 1 Video | Time Complexity and Notes

    Utilize built-in algorithms for sorting and permutations.

  2. 30. Digit Extraction Techniques

    Video 7 · 0:00 – Video 7 · 14:54

    Video 7: Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course

    Learn how to extract digits from a number using modulo and division.

Day 13 · about 31 min · Video 7 · 14:54 – Video 7 · 39:38

  1. 31. Reversing Numbers and Palindromes

    Video 7 · 14:54 – Video 7 · 24:30

    Video 7: Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course

    Implement number reversal and palindrome checks.

  2. 32. Armstrong Numbers and Divisors

    Video 7 · 24:30 – Video 7 · 39:38

    Video 7: Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course

    Check for Armstrong numbers and print all divisors efficiently.

Day 14 · about 30 min · Video 7 · 39:38 – Video 8 · 0:00

  1. 33. Prime Number Checks

    Video 7 · 39:38 – Video 7 · 45:05

    Video 7: Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course

    Efficiently check if a number is prime.

  2. 34. GCD and Euclidean Algorithm (part 1 of 2)

    Video 7 · 45:05 – Video 7 · 53:04

    Video 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:00

      Video 7: Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course

      Calculate the Greatest Common Divisor using the Euclidean algorithm.

    Day 15 · about 28 min · Video 8 · 0:00 – Video 9 · 0:00

    1. 36. Recursion Fundamentals

      Video 8 · 0:00 – Video 8 · 7:12

      Video 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.

    2. 37. Stack Space and Base Conditions

      Video 8 · 7:12 – Video 9 · 0:00

      Video 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.

    Day 16 · about 38 min · Video 9 · 0:00 – Video 10 · 7:47

    1. 38. Printing Name N Times

      Video 9 · 0:00 – Video 9 · 10:28

      Video 9: Re 2. Problems on Recursion | Strivers A2Z DSA Course

      Solve basic recursion problems by printing a name N times.

    2. 39. Printing Numbers 1 to N and N to 1

      Video 9 · 10:28 – Video 10 · 0:00

      Video 9: Re 2. Problems on Recursion | Strivers A2Z DSA Course

      Learn to control the order of execution in recursion.

    3. 40. Parameterised Recursion

      Video 10 · 0:00 – Video 10 · 7:47

      Video 10: Re 3. Parameterised and Functional Recursion | Strivers A2Z DSA Course

      Use parameters to carry state during recursion.

    Day 17 · about 37 min · Video 10 · 7:47 – Video 12 · 0:00

    1. 41. Functional Recursion

      Video 10 · 7:47 – Video 11 · 0:00

      Video 10: Re 3. Parameterised and Functional Recursion | Strivers A2Z DSA Course

      Return values from recursive functions.

    2. 42. Reversing an Array with Recursion

      Video 11 · 0:00 – Video 11 · 10:45

      Video 11: Re 4. Problems on Functional Recursion | Strivers A2Z DSA Course

      Reverse an array using two pointers and recursion.

    3. 43. Palindrome Check using Recursion

      Video 11 · 10:45 – Video 12 · 0:00

      Video 11: Re 4. Problems on Functional Recursion | Strivers A2Z DSA Course

      Check if a string is a palindrome using recursion.

    Day 18 · about 38 min · Video 12 · 0:00 – Video 13 · 13:59

    1. 44. Multiple Recursion Calls: Fibonacci (part 1 of 2)

      Video 12 · 0:00 – Video 12 · 10:14

      Video 12: Re 5. Multiple Recursion Calls | Problems | Strivers A2Z DSA Course

      Understand recursion with multiple calls using Fibonacci numbers.

    2. 45. Multiple Recursion Calls: Fibonacci (part 2 of 2)

      Video 12 · 10:14 – Video 13 · 0:00

      Video 12: Re 5. Multiple Recursion Calls | Problems | Strivers A2Z DSA Course

      Understand recursion with multiple calls using Fibonacci numbers.

    3. 46. Hashing Fundamentals

      Video 13 · 0:00 – Video 13 · 13:59

      Video 13: Hashing | Maps | Time Complexity | Collisions | Division Rule of Hashing | Strivers A2Z DSA Course

      Understand the concept of hashing for efficient data retrieval.

    Day 19 · about 42 min · Video 13 · 13:59 – Video 13 · 47:09

    1. 47. Array Hashing and Character Hashing (part 1 of 2)

      Video 13 · 13:59 – Video 13 · 27:32

      Video 13: Hashing | Maps | Time Complexity | Collisions | Division Rule of Hashing | Strivers A2Z DSA Course

      Implement hashing using arrays for numbers and characters.

    2. 48. Array Hashing and Character Hashing (part 2 of 2)

      Video 13 · 27:32 – Video 13 · 34:35

      Video 13: Hashing | Maps | Time Complexity | Collisions | Division Rule of Hashing | Strivers A2Z DSA Course

      Implement hashing using arrays for numbers and characters.

    3. 49. Map Data Structure

      Video 13 · 34:35 – Video 13 · 47:09

      Video 13: Hashing | Maps | Time Complexity | Collisions | Division Rule of Hashing | Strivers A2Z DSA Course

      Use Maps for flexible key-value storage.

    Day 20 · about 39 min · Video 13 · 47:09 – Video 14 · 18:18

    1. 50. Collisions and Division Method

      Video 13 · 47:09 – Video 14 · 0:00

      Video 13: Hashing | Maps | Time Complexity | Collisions | Division Rule of Hashing | Strivers A2Z DSA Course

      Understand how hashing handles collisions.

    2. 51. Selection Sort (part 1 of 2)

      Video 14 · 0:00 – Video 14 · 6:21

      Video 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:18

        Video 14: Sorting - Part 1 | Selection Sort, Bubble Sort, Insertion Sort | Strivers A2Z DSA Course

        Understand and implement Selection Sort.

      Day 21 · about 32 min · Video 14 · 18:18 – Video 14 · 43:46

      1. 53. Bubble Sort

        Video 14 · 18:18 – Video 14 · 31:40

        Video 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
      2. 54. Insertion Sort

        Video 14 · 31:40 – Video 14 · 43:46

        Video 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.