A child is running up a staircase with N steps and can hop either 1 step, 2 steps, or 3 steps at a time. Implement a method to count how many possible ways the child can run-up to the stairs. You need to return a number of possible ways W.

PROBLEM:-A child is running up a staircase with N steps, and can hop either 1 step, 2 steps or 3 steps at a time. Implement a method to count how many possible ways the child can run up to the stairs. You need to return number of possible ways W.

Suppose you have a string, S, made up of only ‘a’s and ‘b’s. Write a recursive function that checks if the string was generated using the following rules:

PROBLEM:-Suppose you have a string, S, made up of only ‘a’s and ‘b’s. Write a recursive function that checks if the string was generated using the following rules:

GIVEN AN INPUT STRING S AND TWO CHARACTERS C1 AND C2, YOU NEED TO REPLACE EVERY OCCURRENCE OF CHARACTER C1 WITH CHARACTER C2 IN THE GIVEN STRING. DO THIS RECURSIVELY.

GIVEN AN INPUT STRING S AND TWO CHARACTERS C1 AND C2, YOU NEED TO REPLACE EVERY OCCURRENCE OF CHARACTER C1 WITH CHARACTER C2 IN THE GIVEN STRING. DO THIS RECURSIVELY.

YOU HAVE BEEN GIVEN AN INTEGER ARRAY/LIST(ARR) OF SIZE N. IT HAS BEEN SORTED(IN INCREASING ORDER) AND THEN ROTATED BY SOME NUMBER ‘K’ IN THE CLOCKWISE DIRECTION. YOUR TASK IS TO WRITE A FUNCTION THAT RETURNS THE VALUE OF ‘K’, THAT MEANS, THE INDEX FROM WHICH THE ARRAY/LIST HAS BEEN ROTATED.

YOU HAVE BEEN GIVEN AN INTEGER ARRAY/LIST(ARR) OF SIZE N. IT HAS BEEN SORTED(IN INCREASING ORDER) AND THEN ROTATED BY SOME NUMBER ‘K’ IN THE CLOCKWISE DIRECTION. YOUR TASK IS TO WRITE A FUNCTION THAT RETURNS THE VALUE OF ‘K’, THAT MEANS, THE INDEX FROM WHICH THE ARRAY/LIST HAS BEEN ROTATED.

YOU HAVE BEEN GIVEN A RANDOM INTEGER ARRAY/LIST(ARR) OF SIZE N. WRITE A FUNCTION THAT ROTATES THE GIVEN ARRAY/LIST BY D ELEMENTS(TOWARDS THE LEFT).

YOU HAVE BEEN GIVEN A RANDOM INTEGER ARRAY/LIST(ARR) OF SIZE N. WRITE A FUNCTION THAT ROTATES THE GIVEN ARRAY/LIST BY D ELEMENTS(TOWARDS THE LEFT).You have been given a random integer array/list(ARR) of size N. Write a function that rotates the given array/list by D elements(towards the left).