Top 50
Topic
~16h total · Updated weekly · Last refresh Jul 24

Top 50 Recursion Interview Questions

The most frequently asked Recursion questions across all roles and companies, ranked by real interview frequency. Updated weekly.

Detect Cycles in Graphs
Medium

Explain how to detect cycles in directed and undirected graphs using DFS, recursion state, and parent tracking.

RecursionSearchingGraphs
Recently asked
AltanaScientific ResearchBayOne
Swift vs Objective-C Differences
Easy

Compare Swift and Objective-C across syntax, safety, interoperability, and runtime behavior.

RecursionHash TablesArrays
Recently asked
University of CincinnatiAquentDropbox
BFS vs DFS Traversal
Easy

Compare BFS and DFS graph traversal, including order, data structures, and when each is preferred.

RecursionQueueGraphs
Recently asked
USTTCSSide
Compute Nth Fibonacci Number
Easy

Compute the nth Fibonacci number using an iterative dynamic programming approach with O(n) time and O(1) space.

RecursionMathDynamic Programming
Recently asked
FlowcodeExperianAqr Capital Management
Maximum Depth of Binary Tree
Easy

Problem Given the root of a binary tree, return its maximum depth as an integer. The maximum depth is the number of nodes along the longest path from the ...

RecursionQueueTrees
Recently asked
CostarPTCReliable Software Resources
Implementing Singleton in Java
Easy

Explain how to implement a singleton in Java, including thread safety, lazy initialization, and common pitfalls.

RecursionHash Tables
Recently asked
CGITThe CardPRGX Global
More Coding questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan

Open any question for its full solution and discussion.

Browse all questions →