educative.io

Top down approach

Hi,

Can you provide with a top-down implementation for this problem?
I tried to solve it with memoization, but it didn’t work out.
I’d like to compare my implementation with a correct one so that I would know what’s wrong with it.

Thanks.

1 Like