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. June 19, 2020 Add Comment 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 : June 19, 2020 Add Comment 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 "*". June 19, 2020 Add Comment 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. June 19, 2020 Add Comment 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. June 19, 2020 Add Comment 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". June 19, 2020 Add Comment PROBLEM :- Replace pi (recursive) Send Feedback Given a string, compute recursively a new string where all appearances of "pi" hav... Read More