We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I think, we can solve it using memoization for computing factorials. In scala, Streams can be used for memoization. Rest its a combinatorial problem. I solved it like this--
Different Ways
You are viewing a single comment's thread. Return to all comments →
I think, we can solve it using memoization for computing factorials. In scala, Streams can be used for memoization. Rest its a combinatorial problem. I solved it like this--