TAIL RECURSION. A function, written without any loop statements, that accepts an array and produces a new array equal to the initial array with ith element (1-based) repeated i times.
I was able to get the solution with for loop, but got stuck without loop. Need help in writing the program without loops
here is the code with loop:
I have indulded the test as well
Get Free Quote!
423 Experts Online