Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Very nice solution, but I don't understand how/why it works. Can someone explain?
edit: I understand it now: The solution is the same as
prodSansN ns = zipWith (*) (scanl (*) 1 ns) (tail $ scanr (*) 1 ns)
My main problem was a wrong understanding of what scanr does.
done
done
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Random tests sometimes generate value for
n
for which no (nontrivial) solution existsVery hard 3kyu (at least in Agda) but very nice!
This one is crazily cool and rewarding. It should be translated to
Python
by a someone.Very technical kata.
done
Can't edit top post now, the structure guidelines are here: https://docs.codewars.com/authoring/guidelines/description#structure
This comment is hidden because it contains spoiler information about the solution
noItemsJustMoreTimesDeclared
andsomeNoValuesAsWellAsSomeHaveValuesAssigned
are expecting incorrect resultsSome possible improvements
More comments in spoilered comment below:
:) Well done!
So glad to see this, though it has been 4 years since then and I am no longer able to spare time to finish the authoring of this kata. But anyway this problem and the solutions to it has their own aesthetic value.
Loading more items...