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.
Quoting Kata description:
NOTE: Extra spaces before or after the code have no meaning and should be ignored.
still not working.
please need help...
@sir_Jolaf
I still suggest printing whatever you pass to
MorseCode.get()
, before line 16 of your code.Also I recommend reading the kata description, it contains the details on your particular problem.
Also note that CodeWars console output is rendered as HTML, which could deform the strings being printed.
To avoid that I would suggest wrapping the strings being printed in
<pre>
tag or printing in hexlified format.This comment is hidden because it contains spoiler information about the solution
I tried that same code on my ide, gave me only the "." as output.
The output is what is sent to the MorseCode.get.
I even put a print statement to view code that actually goes into the MorserCode.get()
method. turns out its exact "."
And it is hardly a kata issue taking into account the number of successful solutions.
Probably
.
is not the only thing your code sends toMorseCode.get()
method.I would suggest considering some diagnostic prints to know for sure.
This comment is hidden because it contains spoiler information about the solution