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.
.
That was my expectation also.
Is there a way to paste screenshots here? I have one with the output of the test suite.
Hi,
This map is expecting 0, not 1. You must have lookeed at the wrong input/output
Could someone please explain why is the correct volume 1 in the below test (I got it as one of the random tests, Python translation):
14, 0, 0, 12, 12
-5, 14, 10, 9, 9
-5, 2, 7, 7, 14
1, 5, 11, 13, 10
9, 0, 1, 1, 7
Thanks in advance!
This is an issue very specific to your personal approach (see your comment below), not a general issue. You just need to rethink how you tackle the problem. Hint: The number of depth levels should be irrelevant.
I think it would be nice to add to description that big maps have hundreds of different height values. It would prevent warriors from going the wrong path.
This comment is hidden because it contains spoiler information about the solution
Finally, B4B making a translation after centuries XD
JS translation
cheers
Replied with a new fork fixing the issue. Thanks!
I found one problem, commented in your translation discussion section!
Hello there!
Rust translation ready for review!
(It's pretty much a 1:1 copy of the Python test suite)
This comment is hidden because it contains spoiler information about the solution
Okay this one was properly difficult and fun, kudos! I've got a half working solution, but I'll leave it for now, to return later when I've sharpened my tools and brain...
It's a height map. Think of the numbers as heights of square columns stacked next to each other. Water spreads across equally high columns and trickles down into onto lower columns.
Water flows in cardinal directions only, not diagonally. Hence the bottom right corner is not a leak.
6*4
: There are 4 colums of height0
surrounded on all sides by columns of height6
;6-0 = 6 -> 4*6
4*8
: Ther eare 4 columns of height0
surrounded on all sides by columns of height8
;8-0 = 8 -> 4*8
.You can think of it like this: if it rained evenly all over the heightmap, where would water fill and stay?
Loading more items...