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.
This comment is hidden because it contains spoiler information about the solution
According to random test (10, 50, 3, 15, false) gives Shark Bait! but my program gives Alive!. Progression would be:
10 - 50 /
7 - 35 /
4 - 20 /
1 - 5
technically both reach at the same time which should be safe, right?
The C# version of this Kata got the AreEqual arguments mixed:
Assert.AreEqual(Kata.ValidParentheses(str), expected, $"Incorrect answer for str = "{str}"");
"expected" should be the first argument, the result from the method should be the second argument.
This comment is hidden because it contains spoiler information about the solution
Ah, gotta love when you just want to check the data you are getting and the test passes :)
Object-oriented solution using a Builder to get a fluent syntax.