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.
I suggest creating a version of this Kata but asking for performance so you need to use mathematical operations to iterate the number instead of using substrings.
The Side property is not found neither the OutputBoard method. Can you update the description?
The translation is not good. The name of the class is not the same in the unit tests. There are no MorseCode dictionary with de morse values (Or I can't finde the correct name).
Sorry about that, no excuses other than a brainfart on my part (in my defense I had a few drinks during the translation lol) I'll fix it ASAP
The test in C# haves, in AreEqual, the expected and actual collection swapped. The first is the expected in the test and the second what the method gives. This can be so anoying.
https://msdn.microsoft.com/en-us/library/ms243763.aspx
Thanks for your answer. To solve the problem I have added some console.log() and executed the test and this way I could see what was happening ;)
Thanks for your post!
Nice kata, I liked it! You could even twist it to make it more challenging (probably as an advanced kata): e.g. how many such numbers between
m
andn
if the min (or max) power isp
Oh, and no random tests?! Gotcha!
This comment is hidden because it contains spoiler information about the solution
I have three failing tests but I have no idea what I am missing.
✘ Expected: -1, instead got: 3263.10819218804
✘ Expected: -1, instead got: 1.464758190332126
✘ Expected: -1, instead got: 9400.896936434361
Can someone help?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution