DEV Community

Discussion on: Largest no. in Array using Recursion

Collapse
 
frankwisniewski profile image
Frank Wisniewski

in this case for loop would be more appropriate...

Thread Thread
 
shubhamtiwari909 profile image
Shubham Tiwari

Actually it is a question which is asked in an interview so i tried to solve it later because I was not able to solve it at the time of interview 😂😂

Thread Thread
 
fjones profile image
FJones

Okay, yeah, I would've refused that answer with "why on Earth would you do that?".

Thread Thread
 
shubhamtiwari909 profile image
Shubham Tiwari

Yeah it won't make a difference Because they already rejected 😂😂