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.
The Sums of Powers
The Sums of Powers
Sort by
recency
|
28 Discussions
|
Please Login in order to post a comment
This question is usual coding interview junk that has zero relation with functional programming.
Here is my haskell solution. This will actually give you a list of all possible combos that sum to the target number. I just take the length of the returned list to get the amount of combos.
Brute force solution... Fails on the timed case :(
f# solution
input --> 400 2
expected output --> 55
anyone can help me to explain this? this is my temporary solution