+ 7
Find max number in an array with Recursive algorithm
Can any one write an function that Find max number in an array with Recursive algorithm
4 Answers
+ 16
https://code.sololearn.com/cguktJlM37R1/?ref=app
its for 3 number
, you can increase it whatever you want
+ 4
https://code.sololearn.com/c6CFICc89XLk/?ref=app
its for n number
+ 2
You can simply create a method with two parameters one is index and the other is the array, which of course, will start at the first 0, and then increases that index as you sum the values if the array, each time you call the same method with the the same array with the index incremented, the base case will be when your index becomes bigger than or equal to the length of the array, I didn't give the code because I think you should get the idea yourself and implemented it, best of luck.
+ 1
thanks bro you realy helped me on this one