Given an array of length N and an integer x, you need to find and return the last index of integer x present in the array. Return -1 if it is not present in the array. Last index means - if x is present multiple times in the array, return the index at which x comes last in the array. You should start traversing your array from 0, not from (N - 1). Do this recursively. Indexing in the array starts from 0.

Given an array of length N and an integer x, you need to find and return the last index of integer x present in the array. Return -1 if it is not present in the array. Last index means - if x is present multiple times in the array, return the index at which x comes last in the array. You should start traversing your array from 0, not from (N - 1). Do this recursively. Indexing in the array starts from 0.

PROBLEM :- Last Index of Number Send Feedback Given an array of length N and an integer x, you need to find and return the last index of int...
Read More
Given an array of length N and an integer x, you need to find and return the first index of integer x present in the array. Return -1 if it is not present in the array. First index means, the index of first occurrence of x in the input array. Do this recursively. Indexing in the array starts from 0.

Given an array of length N and an integer x, you need to find and return the first index of integer x present in the array. Return -1 if it is not present in the array. First index means, the index of first occurrence of x in the input array. Do this recursively. Indexing in the array starts from 0.

PROBLEM :- First Index of Number Send Feedback Given an array of length N and an integer x, you need to find and return the first index of i...
Read More
Given an array of length N and an integer x, you need to find if x is present in the array or not. Return true or false. Do this recursively.

Given an array of length N and an integer x, you need to find if x is present in the array or not. Return true or false. Do this recursively.

PROBLEM :- Check Number Send Feedback Given an array of length N and an integer x, you need to find if x is present in the array or not. Ret...
Read More
Given an array of length N, you need to find and return the sum of all elements of the array. Do this recursively.

Given an array of length N, you need to find and return the sum of all elements of the array. Do this recursively.

Sum of Array Send Feedback PROBLEM :- Given an array of length N, you need to find and return the sum of all elements of the array. Do this ...
Read More
Given the code to find out and return the number of digits present in a number recursively. But it contains few bugs, that you need to rectify such that all the test cases should pass.

Given the code to find out and return the number of digits present in a number recursively. But it contains few bugs, that you need to rectify such that all the test cases should pass.

PROBLEM :- Number of Digits Send Feedback Given the code to find out and return the number of digits present in a number recursively. But it...
Read More
Given is the code to print numbers from 1 to n in increasing order recursively. But it contains few bugs that you need to rectify such that all the test cases pass.

Given is the code to print numbers from 1 to n in increasing order recursively. But it contains few bugs that you need to rectify such that all the test cases pass.

PROBLEM :- Print Numbers Send Feedback Given is the code to print numbers from 1 to n in increasing order recursively. But it contains few b...
Read More