Introduction to Recursion
8 problems to practice.
Tower Of Hanoi
1.You are given the number of discs N and three rods 1,2 and 3. 2.Initially, these discs are in th...
Print Decreasing
1. You are given a positive number n. 2. You are required to print the counting from n to 1. 3. Y...
Print Increasing
1. You are given a positive number n. 2. You are required to print the counting from 1 to n. 3. Y...
Print Increasing Decreasing
1. You are given a positive number n. 2. You are required to print the counting from n to 1 and ba...
Factorial
1. You are given a number n. 2. You are required to calculate the factorial of the number. Don't ch...
Power-linear
1. You are given a number x. 2. You are given another number n. 3. You are required to calculate x...
Power-logarithmic
1. You are given a number x. 2. You are given another number n. 3. You are required to calculate x...
Print Zigzag
1. Here are a few sets of inputs and outputs for your reference Input1 -> 1 Output1 -> 1 1 1...