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.
Ahh now I get it. The towers are blocking it against their neighbours. I understood something like they are water towers of a given capacity or such things. Boing. Yea, makes sense now. Thank you!
Let's take the first 2 examples in description:
So if it rains, there will be 3 units of water between 5 and 10 (it will become [5, 5, 10] (any more would just fall to left side, or right side of 10, which we don't care about)
So there is space for 1 unit between 1 and 5, 3 units between 5 and 6, and 3 more units between 6 and 10, ending in state [1, 1, 5, 5, 6, 6, 10] (1 + 3 + 3 = 7)
Does that make any sense?
Am I the only one who doesn't understand what to do?
How do I calculate this? (No code needed, I just don't get what do to)
D translation
Can someone please enable C++ as a programming language?
approved
approved
Go translation
Approved
Kotlin translation ready for review and approval.
approved
sum
splice
may seem attractive, but it's generally slow; try avoiding itIt's not as performant as it could be, but it has more or less the right asymptotic performance. It's not as maintainable as it could be ( and this is bigger than you possibly think ), but .. it works.
Haskell translation
Can you review my JavaScript solution?
https://www.codewars.com/kata/reviews/58e781d2c731c115d9000e01/groups/61e2e39054e22a00012dde53
Thanks, for the answer
Loading more items...