Udemyallen

Recursion Masterclass from Beginner to Advance level in C++

Master recursion! Learn to solve problems with recursion trees & ace LeetCode interviews. Step-by-step guidance for effective recursion problem-solving.

4.4(12)
1,043students
5h 39m
Certificate
Amit Rai
Amit RaiCompetitive programmer and problem solver

Course Content

Recursion Masterclass from Beginner to Advance level in C++ is an all-levels Udemy course taught by Amit Rai. It runs 5h 39m, is taught in English, and includes a certificate of completion. Learners rate it 4.4 out of 5 from 12 reviews, with 1,043 students enrolled. It is a paid course, last updated June 2025.

Unlock the Power of Recursion: A Complete Masterclass

Feeling stuck when learning recursion? This beginner-friendly recursion masterclass will guide you from novice to expert, mastering a fundamental technique in data structures and algorithms. Understanding recursion is crucial for acing coding interviews and tackling advanced topics like dynamic programming, trees, graphs, and backtracking, as recursion is a core component of each.

We'll build a solid recursion foundation by starting with the basics. You'll gain practical experience solving common problems such as:

  • Array Sum: Calculate the sum of elements in an array using recursive functions.
  • Linear Search: Implement linear search using a recursive approach.
  • Binary Search: Learn how to perform binary search with recursion.

Next, we'll move to intermediate recursion problems, including:

  • Sorting an Array (Recursively): Implement array sorting algorithms using recursive calls.
  • Reversing a Stack (Recursively): Master stack manipulation with recursive functions.

Then, dive into advanced recursion with complex problems involving multiple recursive calls:

  • Print Subset of an Array (Recursion): Generate and display subsets of an array.
  • Subset Sum Problem: Determine if a subset of an array sums to a target value.
  • Permutation of an Array: Generate all possible orderings of an array.
  • Combination Sum: Find all possible combinations that sum to a target value.

Here's what you'll learn in this comprehensive course:

  • What is Recursion?: A clear explanation of the core concept.
  • How Recursion Works: Understand the underlying mechanisms of recursive functions.
  • Recursion in Memory: Explore how variables are scoped within recursive functions.
  • Dry Run of Recursion Functions: Visualize the execution flow of recursive calls.
  • Multiple Recursive Calls: Learn to effectively utilize nested recursion.
  • Thinking Recursively: Develop problem-solving skills to approach challenges using recursive thinking.
  • Time and Space Complexity: Analyze the efficiency of recursive functions.
  • Designing Base Cases: Master the crucial element of stopping recursion.
  • Recursive Function Return Values: Understand how recursive functions return results.
  • The Stack and Stack Frames: Learn how recursion utilizes the stack.
  • Debugging Recursive Functions: Strategies for identifying and fixing errors in recursive code.
  • Stack Overflow & How to Avoid It: Prevent common recursion errors.
  • Infinite Recursion & How to Avoid It: Understand and prevent infinite loops.
  • Drawing Recursion Trees: Visualize recursive calls for better understanding.

Code samples are provided in C++.

Coding Problems Covered:

  • Array Sum: Calculate the sum of array elements.
  • Print 1 to N number: Print numbers from 1 to N.
  • Print N to 1 number: Print numbers from N to 1.
  • 1 to N Sum: Calculate the sum of numbers from 1 to N.
  • Binary Search: Implement binary search.
  • Sort an Array: Sort an array using recursion.
  • Sort a Stack: Sort a stack using recursion.
  • Reverse an Array (Recursively): Reverse an array using recursion.
  • Reverse a Stack: Reverse a stack using recursion.
  • Delete the Middle Element of a Stack (Recursively): Remove the middle element from a stack using recursion.
  • Fibonacci Sequence: Generate the Fibonacci sequence using recursion.
  • Print Subset of an Array (Recursion): Print subsets of an array.
  • Print Unique Subset: Print unique subsets of an array.
  • Subset Sums: Determine if a subset sums to a target.
  • Combination Sum: Find all combinations that sum to a target.
  • Combination Sum ||: Print all permutations of an array.
  • Generate All Possible Strings of Length k: Generate strings of a specific length.
  • Generate All Binary Strings Without Consecutive 1’s: Generate binary strings with no consecutive 1s.
  • Permutation with Spaces: Generate permutations with spaces.
  • Generate All Balanced Parentheses: Generate balanced parenthesis combinations.
  • Permutation with Case Change: Generate permutations with case changes.
  • Josephus Problem (Game of Death in a Circle): Solve the
$ whoami — the devs behind tutorialsearch.io

Need a web app built? Hire the team behind TutorialSearch.io

We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.

5.0(230)
6h 39m
expert
skillshare
5.0(211)
1h 15m
beginner
skillshare
5.0(130)
2h 21m
beginner
skillshare