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 is genius! =) Simple as a stone - elegant as a butterfly! =)
wow!! excelent! i took a tortuous path! hahaha !! xD great job!!
Super simple solution, I like this variation, especially compared to my noob attempt!
bruh y'all are killin me with these clever solutions. I was happy just to finally solve it.
fixed
not ideal, but not really a problem either. Moreover, considering how old the kata is... Closing.
This isn't event written to compile in C#
This comment is hidden because it contains spoiler information about the solution
Dude, if you are going to assert for a conditional, use Assert.True or Assert.False, not Assert.AreEqual, it makes you look like you don't know what you're doing, and it gives bad debug messages. This is almost as bad as someone in javascript doing "value === value2 should be true" instead of "value should be equal to value2"
Stop using Expect when you also use === it makes you look stupid, use assertEquals, it gives better messages
so instead of doing this:
Test.expect(whatever() === 10);
do this
Test.assertEquals(whatever(), 10);
Use assertEquals instead of expect, it gives WAY better debug messages, expect gives "the value was not correct" whereas assertEquals gives "undefined was not equal to John Doe"