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.
Nice solution
This comment is hidden because it contains spoiler information about the solution
This is fire
that's smart !
It should.
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?
Issues started to pop up, so I approved.
If you mean sample tests, should be fixed. Please reset the trainer, reload the page, and verify.
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.
It should be No.1
Wow. Just wow.
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.