The Wayback Machine - https://web.archive.org/web/20241126205651/https://www.geeksforgeeks.org/top-50-interview-problems-on-recursion-algorithm/
Open In App

Top 50 Problems on Recursion Algorithm asked in SDE Interviews

Last Updated : 28 Nov, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Recursion is one of the most essential algorithms which uses the concept of code reusability and repeated usage of the same piece of code. In this post, we have curated an extensive list of interview questions asked around the Recursion Algorithm. The point which makes Recursion one of the most used algorithms is that it forms the base for many other algorithms such as:

  • Tree traversals
  • Graph traversals
  • Divide and Conquers Algorithms
  • Backtracking algorithms 

file.png

To learn more about Recursion Algorithm, Please refer to the Tutorial on Recursion Algorithms

Easy Interview Problems on Recursion
Print 1 to n without using loops
Print N to 1 without loop
Mean of Array using Recursion
Sum of natural numbers using recursion
Decimal to binary number using recursion
Sum of array elements using recursion
Print reverse of a string using recursion
Program for length of a string using recursion
Sum of digit of a number using recursion
Tail recursion to calculate sum of array elements.
Program to print first n Fibonacci Numbers | Set 1
Program for factorial of a number
Recursive Programs to find Minimum and Maximum elements of array
Recursive function to check if a string is palindrome
Count Set-bits of number using Recursion
Print Fibonacci Series in reverse order using Recursion
Coin Change | DP-7
Medium Interview Problems on Recursion
Flood Fill Algorithm
Recursively remove all adjacent duplicates
Sort the Queue using Recursion
Reversing a queue using recursion
Binary to Gray code using recursion
Delete a linked list using recursion
Product of 2 Numbers using Recursion
Programs for Printing Pyramid Patterns using Recursion
Length of longest palindromic sub-string : Recursion
Program for Tower of Hanoi Algorithm
Time Complexity Analysis | Tower Of Hanoi (Recursion)
Program to calculate value of nCr using Recursion
Find geometric sum of the series using recursion
Convert a String to an Integer using Recursion
DFS traversal of a Tree
Bottom View of a Binary Tree using Recursion
Write a program to print all Permutations of given String
Print all subsets of a given Set or Array
Print all possible paths from top left to bottom right of a mXn matrix
Print all combinations of balanced parentheses
Longest Common Subsequence (LCS)
Print Right View of a Binary Tree
Hard Interview Problems on Recursion
Find the value of a number raised to its reverse
How to Sort a Stack using Recursion
Reverse a Doubly linked list using recursion
Given a string, print all possible palindromic partitions
Check if a string is a scrambled form of another string
Word Break Problem | DP-32
Print all palindromic partitions of a string
N Queen Problem | Backtracking-3
Algorithm to Solve Sudoku | Sudoku Solver
The Knight’s tour problem
Generate all N digit numbers having absolute difference as K between adjacent digits

Some other important Tutorials:



Similar Reads

Top 50 Problems on Heap Data Structure asked in SDE Interviews
A Heap is a special Tree-based Data Structure in which the tree is a complete binary tree. Generally, heaps are of two types: Max-Heap and Min-Heap. To know more about this Data Structure in-depth refer to the Tutorial on Heap Data-Structure. Given below are the most frequently asked interview questions on Heaps:  Easy Interview Questions on Heap D
2 min read
Top 50 Problems on Queue Data Structure asked in SDE Interviews
A Queue is defined as a linear data structure that is open at both ends and the operations are performed in First In First Out (FIFO) order. We define a queue to be a list in which all additions to the list are made at one end, and all deletions from the list are made at the other end. The element which is first pushed into the order, the operation
3 min read
Top 50 Problems on Matrix/Grid Data Structure asked in SDE Interviews
A Matrix/Grid is a two-dimensional array that consists of rows and columns. It is an arrangement of elements in horizontal or vertical lines of entries. Here is the collection of the Top 50 list of frequently asked interviews question on Matrix/Grid in the SDE Interviews. Problems in this Article are divided into three Levels so that readers can pr
3 min read
Top 50 Problems on Hash Data Structure asked in SDE Interviews
Hashing is a technique or process of mapping keys, and values into the hash table by using a hash function. It is done for faster access to elements. The efficiency of mapping depends on the efficiency of the hash function used. To learn more about hashing and hashmaps, please refer to the Tutorial on Hashing. Given below are the most frequently as
3 min read
Top 50 Problems on Stack Data Structure asked in SDE Interviews
A Stack is a linear data structure in which the insertion of a new element and removal of an existing element takes place at the same end represented as the top of the stack. To learn about Stack Data Structure in detail, please refer to the Tutorial on Stack Data Structure. Given below are the most frequently asked interview questions on Stack:Eas
3 min read
Top 50 Problems on Linked List Data Structure asked in SDE Interviews
A Linked List is a linear data structure that looks like a chain of nodes, where each node is a different element. Unlike Arrays, Linked List elements are not stored at a contiguous location. Here is the collection of the Top 50 list of frequently asked interview questions on Linked Lists. Problems in this Article are divided into three Levels so t
3 min read
90 Most Asked Aptitude and Reasoning Questions in Interviews
If we wish to excel in aptitude tests, interviews, placement exams, or competitive exams, we must prepare and practice well. However, to cover the commonly asked aptitude questions, we need proper guidance and direction. To enhance our problem-solving skills and sharpen our minds, a set of topics has been created. It includes two questions along wi
15+ min read
Commonly Asked Questions in Goldman Sachs Interviews
Reverse words in a given string Number Formation Overlapping rectangles Ugly Numbers Column name from a given column number Stock buy and sell Non Repeating Character Merge Two Sorted Arrays Egg Dropping Puzzle Squares in N*N Chessboard Rectangles in N*N Board Wave Array LRU Cache Get minimum element from stack Implement Queue using array Queue usi
1 min read
Commonly asked questions in Flipkart Interviews
Snake and Ladder Problem Chocolate Distribution Problem Solve the Sudoku Shortest direction 0 - 1 Knapsack Problem Inversion of array Maximum of all subarrays of size k Possible words from Phone digits Doubling the value Print the Kth Digit Consecutive 1's not allowed Search in a Rotated Array Kadane's Algorithm Rat in a Maze Problem Multiply two s
1 min read
Top 50 Searching Coding Problems for Interviews
Searching in Data Structures and Algorithms (DSA) is a fundamental operation that involves finding a specific element within a collection of data. In our article "Top 50 Searching Coding Problems for Interviews", we present a collection of essential coding challenges focused on searching algorithms. These problems are carefully selected to help you
4 min read
Top 50 Binary Search Tree Coding Problems for Interviews
Binary Search Trees (BST) are like organized lists that help find, add, and remove items quickly. In our article "Top 50 Binary Search Tree Coding Problems for Interviews", we have collected a list of 50 coding problems, these problems are designed to boost your problem-solving abilities and prepare you for interviews. By working on these problems,
4 min read
Top 50 String Coding Problems for Interviews
Here is the collection of the Top 50 list of frequently asked interview questions on Strings. Problems in this Article are divided into three Levels so that readers can practice according to the difficulty level step by step.  Level 1Problems Solve Reverse words in a given stringSolveLongest Common PrefixSolveRoman Number to IntegerSolveInteger to
2 min read
Top 50 Tree Coding Problems for Interviews
Here is the collection of the Top 50 list of frequently asked interview questions on Tree. Problems in this Article are divided into three Levels so that readers can practice according to the difficulty level step by step. Level 1Problems Solve Height of Binary TreeSolveDetermine if two trees are identicalSolveMirror treeSolveSymmetric TreeSolveDia
2 min read
Top 50 Graph Coding Problems for Interviews
Here is the collection of the Top 50 list of frequently asked interview questions on Graph. Problems in this Article are divided into three Levels so that readers can practice according to the difficulty level step by step. Level 1Problems Solve Print Adjacency ListSolveBFS of GraphSolveDFS of GraphSolveTransitive Closure of a GraphSolveUnion-FindS
2 min read
Top 50 Dynamic Programming Coding Problems for Interviews
Here is the collection of the Top 50 list of frequently asked interview questions on Dynamic Programming. Problems in this Article are divided into three Levels so that readers can practice according to the difficulty level step by step. Level 1: Dynamic Programming Coding Problems for InterviewsProblems SolveNth Catalan NumberSolveMinimum Operatio
2 min read
Top 50 Array Coding Problems for Interviews
Here is the collection of the Top 50 list of frequently asked interview questions on arrays. Problems in this Article are divided into three Levels so that readers can practice according to the difficulty level step by step. Level 1Problems Practice Find the Minimum and Maximum Element in an Array Solve Array Reverse Solve Write a Program to Cyclic
3 min read
Most Commonly Asked System Design Interview Problems/Questions
This System Design Interview Guide will provide the most commonly asked system design interview questions and equip you with the knowledge and techniques needed to design, build, and scale your robust applications, for professionals and newbies Below are a list of most commonly asked interview problems/case studies/questions in System Design interv
2 min read
Most Asked Problems in Data Structures and Algorithms | Beginner DSA Sheet
In this Beginner DSA Sheet for Data Structures and Algorithms, we have curated a selective list of problems for you to solve as a beginner for DSA. After learning the fundamentals of programming, choosing a programming language, and learning about Data Structure and Algorithms and their space-time complexity, it becomes necessary to practice the pr
3 min read
ValueLabs Interviews Experience for SDE
It was a College placement. It included a total of 3 interviews. Before the interview, there was a coding exam having questions around the medium-semi hard level. The interviews first were a core technical interview, the second was also a technical interview, and lastly the most known HR interview. Let's discuss each of them in brief: 1st tech roun
1 min read
Commonly Asked Algorithm Interview Questions
For tech job interviews, knowing about algorithms is really important. Being good at algorithms shows you can solve problems effectively and make programs run faster. This article has lots of common interview questions about algorithms. Table of Content Commonly Asked Interview Questions on Sorting AlgorithmCommonly Asked Interview Questions on Sea
15+ min read
Why is Tail Recursion optimization faster than normal Recursion?
What is tail recursion? Tail recursion is defined as a recursive function in which the recursive call is the last statement that is executed by the function. So basically nothing is left to execute after the recursion call. What is non-tail recursion? Non-tail or head recursion is defined as a recursive function in which the recursive call is the f
4 min read
How to solve problems related to Number-Digits using Recursion?
The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. Using a recursive algorithm, certain problems can be solved quite easily. A method to solve the number digit problems using recursion is discussed in this article. Two main components exist for any r
4 min read
Top Most Asked System Design Interview Questions
System Design is defined as a process of creating an architecture for different components, interfaces, and modules of the system and providing corresponding data helpful in implementing such elements in systems. Table of Content 1. Why is it better to use horizontal scaling than vertical scaling?2. What is sharding, and how does it improve databas
11 min read
Top 50 Most Asked Google Tricky Interview Questions
Google is a dream workplace for every software developer to work in, It is one of the best in every aspect, be it the projects their employees work on or work-life balance. So, to be a part of such an awesome workplace one must be adequately prepared for its Technical and behavioral rounds of the hiring process. Google Interview Process: 1) Online
15+ min read
Top 25 Frequently Asked Interview Questions in Technical Rounds
Here is the collection of the TOP 25 frequently asked questions based on the experience of interviews in multiple companies. 1Lowest common Ancestor2An unsorted array of integers is given; you must find the max product formed by multiplying three numbers. (You cannot sort the array, watch out when there are negative numbers)3Left View of a tree4Rev
1 min read
SQL Interview Questions asked in Top Tech Companies
1.What do you understand by Adaptive query processing launched in SQL Server? Answer: SQL Server and Azure SQL Database introduce a new generation of query processing improvements that will adapt optimization strategies to your application workload’s runtime conditions. 2.Name all three Adaptive query processing features? Answer. In SQL Server and
4 min read
Top 10 Most Commonly Asked Web3 Interview Questions and Answers
Web3 (also known as Web 3.0) is definitely the latest technology that the world is currently basking on and slowly small and big companies are turning to Web3 to not only retain their customer but also offer safer and private cyberspace for them to use. It provides better data privacy by eliminating central organizations and allowing users to keep
7 min read
Top 50 Android Interview Questions and Answers - SDE I to SDE III
A Linux-based open-source OS, Android was created by Andy Rubin and became one of the most popular smartphone operating systems. With 71 percent of the market share worldwide, Android is on top. Because it is on top in the smartphone OS, Android development is always in demand. If you are seeking a job in Android development, then this interview pr
15+ min read
Find HCF of two numbers without using recursion or Euclidean algorithm
Given two integer x and y, the task is to find the HCF of the numbers without using recursion or Euclidean method. Examples: Input: x = 16, y = 32 Output: 16 Input: x = 12, y = 15 Output: 3 Approach: HCF of two numbers is the greatest number which can divide both the numbers. If the smaller of the two numbers can divide the larger number then the H
6 min read
10 Most Important Algorithms For Coding Interviews
Algorithms are the set of rules to be followed in calculations or other problem-solving operations. It is considered one of the most important subjects considered from the programming aspect. Also, one of the most complex yet interesting subjects. From the interview aspect, if you want to crack a coding interview, you must have a strong command ove
5 min read
three90RightbarBannerImg