Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
Misc
7.7K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Strings
2.1K+ articles
Greedy
1.4K+ articles
Sorting
1.1K+ articles
Dynamic Programming
1.1K+ articles
Searching
1.0K+ articles
Tree
911+ articles
DSA
/
Algorithms
/
Recursion
Recursion
591+ posts
Recent Articles
Popular Articles
Tail vs. Non-Tail Recursion
Last Updated: 06 October 2023
Tail recursion and Non-tail recursion are two types of recursive functions in computer programming. In this post we will deep dive into what are the major differences betw...
read more
Recursion
Picked
DSA
What is 'Base Case' in Recursion?
Last Updated: 06 January 2024
Base Case is defined as the condition in Recursive Function, which tells the function when to stop. It is the most important part of every Recursion, because if we fail to...
read more
Recursion
Picked
DSA
Count distinct original Strings
Last Updated: 23 July 2025
Given a string str. A faulty machine prints bb instead of character a and prints dd instead of char c and for the rest characters it prints normally, the task is to find h...
read more
Dynamic Programming
Recursion
DSA
Algorithms-Dynamic Programming
Algorithms-Recursion
Memoization
recursive-approach
Minimum total power consumption by both the current "+" & "-"
Last Updated: 23 July 2025
Given a matrix of size rows x cols called "power," which represents the power associated with each cell in the field. There are two types of current flow in the field: "+"...
read more
Dynamic Programming
Matrix
Recursion
DSA
Permutations of an Array in lexicographical order.
Last Updated: 23 July 2025
Given an array arr[] of distinct integers, the task is to print all the possible permutations in lexicographical order.Examples:Input: arr = [1, 2, 3]Output: [[1, 2, 3], [...
read more
Backtracking
Recursion
DSA
Arrays
Achieving Y through integer splitting
Last Updated: 23 July 2025
Given integers X and Y, the task is to check if Y can be formed from X by performing the following operations any number of times:Split X into 2 integers A and B such that...
read more
Dynamic Programming
Recursion
DSA
Algorithms-Recursion
Top Problems on Recursion
Last Updated: 11 September 2025
Recursion is one of the most essential algorithms that uses the concept of code reusability and repeated usage of the same piece of code.In this post, we have curated an e...
read more
Recursion
DSA
Interview-Questions
top-dsa-problems
Recursive Algorithms
Last Updated: 23 July 2025
Recursion is technique used in computer science to solve big problems by breaking them into smaller, similar problems. The process in which a function calls itself directl...
read more
Recursion
DSA
Forming String with maximum occurrences
Last Updated: 23 July 2025
Given the maximum occurrences of a, b, and c in a string, the task is to make the string containing only a, b, and c such that no three consecutive characters are the same...
read more
Strings
Backtracking
Recursion
DSA
math
cpp-strings
C Recursion
Last Updated: 13 December 2025
Recursion is a programming technique where a function calls itself repeatedly until a specific base condition is met. A function that performs such self-calling behavior i...
read more
Recursion
C Language
Picked
C++ Recursion
Last Updated: 23 July 2025
Recursionis a programming technique where a function calls itself repeatedly until a specific base condition is met. A function that performs such self-calling behavior is...
read more
Recursion
C++
Print n to 1 using Recursion
Last Updated: 27 September 2025
Given an integer n.Print numbers from n to 1 using recursion.Examples:Input: n = 3Output: [3, 2, 1]Explanation: Print numbers in reverse order from n down to 1.Input: n = ...
read more
Recursion
DSA
Print 1 to n using Recursion
Last Updated: 30 September 2025
Given an integer n.Print numbers from 1 to n using recursion.Examples:Input: n = 3Output: [1, 2, 3]Explanation: We have to print numbers from 1 to 3.Input: n = 10Output: [...
read more
Recursion
DSA
Minimum number of operations to make all letters in the string equal
Last Updated: 23 July 2025
Given a string "str" consisting of lowercase alphabets, the task is to find the minimum number of operations to be applied on string "str" such that all letters of the str...
read more
Strings
Recursion
DSA
Algorithms-Recursion
strings
Find product of the smallest and largest prime numbers in a binary tree
Last Updated: 23 July 2025
Given a binary tree, the task is to find the product of the smallest and largest prime numbers in a given binary tree.Examples:Input: 4 / \ 5 7 / \ / \ ...
read more
Tree
Recursion
DSA
Binary Tree
Prime Number
1
2
3
4
...
40