Things I tried:
vectorin recursive function as an argument and populating it in each iteration instead of the
- As the
returnstatement is only in
ifcondition, the compiler gives an error if there is no
returnstatement at the end of the function.
Any hint or push in the right direction will be helpful. Thank you.