0% found this document useful (0 votes)
3 views1 page

Recursion Questions Java

The document lists recursion practice questions in Java categorized into three levels: Easy, Medium, and Hard. Easy questions include printing numbers, calculating factorials, and checking palindromes. Medium and Hard questions involve more complex problems like generating permutations, solving Sudoku, and the N-Queens problem.

Uploaded by

itrsamip
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Recursion Questions Java

The document lists recursion practice questions in Java categorized into three levels: Easy, Medium, and Hard. Easy questions include printing numbers, calculating factorials, and checking palindromes. Medium and Hard questions involve more complex problems like generating permutations, solving Sudoku, and the N-Queens problem.

Uploaded by

itrsamip
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Recursion Practice Questions in Java

Easy Level
1. Print numbers from 1 to N using recursion.

2. Calculate the factorial of a number using recursion.

3. Find the nth Fibonacci number using recursion.

4. Sum of first N natural numbers using recursion.

5. Check if a string is a palindrome using recursion.

Medium Level
1. Print all subsets of a string using recursion.

2. Solve the Tower of Hanoi problem for N disks.

3. Count the number of paths in a maze (grid) using recursion.

4. Generate all permutations of a string using recursion.

5. Reverse a stack using recursion.

Hard Level
1. N-Queens Problem using recursion and backtracking.

2. Sudoku Solver using recursion and backtracking.

3. Word Break Problem using recursion and memoization.

4. Count ways to reach the Nth stair (1 or 2 steps at a time).

5. Regular Expression Matching using recursion.

You might also like