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

Recursion Exercises

The document provides a list of programming exercises categorized into easy, medium, and challenging levels, focusing on recursion in C programming. Easy exercises include tasks like calculating factorials, printing Fibonacci series, and finding GCD, while medium exercises involve combinations and sequences. Challenging exercises tackle complex problems like the N Queens problem and finding shortest paths in a maze.

Uploaded by

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

Recursion Exercises

The document provides a list of programming exercises categorized into easy, medium, and challenging levels, focusing on recursion in C programming. Easy exercises include tasks like calculating factorials, printing Fibonacci series, and finding GCD, while medium exercises involve combinations and sequences. Challenging exercises tackle complex problems like the N Queens problem and finding shortest paths in a maze.

Uploaded by

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

Easy exercises:

https://www.includehelp.com/c-programs/recursion-examples.aspx
- Program to read a value and print its corresponding percentage from 1% to 100%
using recursion.
- Program to find factorial using recursion.
- Program to print fibonacci series using recursion.
- Program to calculate power of a number using recursion.
- Program to count digits of a number using recursion.
- Program to find sum of all digits using recursion.
- Program to calculate length of the string using recursion.
https://www.w3resource.com/c-programming-exercises/recursion/index.php
- Find GCD of two numbers using recursion
- Get the largest element of an array using recursion.
- Reverse a string using recursion
- Convert a decimal number to binary using recursion
- Check a number is a prime number or not using recursion
- Find the LCM of two numbers using recursion.
- Multiply two matrix using recursion
- Find the Hailstone Sequence of a given number upto 1
- Find the first capital letter in a string using recursion
- Do binary search using recursion.

Medium level exercises:


https://www.geeksforgeeks.org/recursion-practice-problems-solutions/
- Print all possible combinations of r elements in a given array of size n
- Print all increasing sequences of length k from first n natural numbers
- Sum triangle from array
- Partition a given string (or an array) in such manner that i’th substring
(subarray) is sum of (i-1)’th and (i-2)’th substrings (subarrays)
- Find all possible binary numbers of length n with equal sum in both halves
- Generate all binary strings without consecutive 1’s
- Find all even length binary sequences with same sum of first and second half
bits

More challenging exercises:


https://www.techiedelight.com/recursion-practice-problems-with-solutions/
- Print all possible solutions to N Queens problem
- Find the longest possible route in a matrix
- Generate list of possible words from a character matrix
- Find the shortest path in maze
- Print all shortest routes in a rectangular grid
- and more...

You might also like