Pages

Saturday, June 11, 2016

Coding problem to solve using recursion

Decide if a number can be reached starting with 1 by either adding five or multiplying by three in any number or combination of steps.  For example, 15 can't be reached, but 13 can be reached by 1 * 3 + 5 + 5.

If the number can be reached, return true, if not, return false.


Hint : use recursion.


This one might be really hard.

That's what she said.



No comments:

Post a Comment