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.
Trivial regex match and map/filter/reduce are not novel kata ideas.
So there are no
0
or negative values in the input?Also, it's implied that the solution should be using streams but the normal approach is fine too. So the last part of the descriptions is not really a hint (but rather something that tries to enforce a specific kind of solution).
Needs random tests
They way to handle how the birds land on each side is a bit confusing, it should be explained further or modified.