Write a program to find x to the power n (i.e. x^n). Take x and n from the user. You need to return the answer. Do this recursively.

Write a program to find x to the power n (i.e. x^n). Take x and n from the user. You need to return the answer. Do this recursively.

PROBLEM :- Power Send Feedback Write a program to find x to the power n (i.e. x^n). Take x and n from the user. You need to return the answe...
Read More
Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move all disks from source rod to destination rod using third rod (say auxiliary). The rules are :

Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move all disks from source rod to destination rod using third rod (say auxiliary). The rules are :

PROBLEM :- Tower of Hanoi Send Feedback Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the p...
Read More
Given a string S, compute recursively a new string where identical chars that are adjacent in the original string are separated from each other by a *.

Given a string S, compute recursively a new string where identical chars that are adjacent in the original string are separated from each other by a "*".

PROBLEM :- Pair star Send Feedback Given a string S, compute recursively a new string where identical chars that are adjacent in the origina...
Read More
Write a recursive function to convert a given string into the number it represents. That is input will be a numeric string that contains only numbers, you need to convert the string into corresponding integer and return the answer.

Write a recursive function to convert a given string into the number it represents. That is input will be a numeric string that contains only numbers, you need to convert the string into corresponding integer and return the answer.

PROBLEM :- String to Integer Send Feedback Write a recursive function to convert a given string into the number it represents. That is input...
Read More

Given a string, compute recursively a new string where all 'x' chars have been removed.

PROBLEM :- Remove X Send Feedback Given a string, compute recursively a new string where all 'x' chars have been removed. Input form...
Read More
Given a string, compute recursively a new string where all appearances of pi have been replaced by 3.14.

Given a string, compute recursively a new string where all appearances of "pi" have been replaced by "3.14".

PROBLEM :- Replace pi (recursive) Send Feedback Given a string, compute recursively a new string where all appearances of "pi" hav...
Read More