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.
Test Results:
SolutionTest
testSolution
Completed in 24ms
You have passed all of the tests! :)
but when run attempt receiving that:
SolutionTest
testEmpty
testShort
testEdge
expected:<[#]
[On> but was:<[y]
[On>Stack Trace
Completed in 5ms
testLong
expected:<###[#]##Cp{u> but was:<###[]]##Cp{u>
Stack Trace
Completed in 1ms
testSingle
in the task itself this is the statement:
which changes all but the last four characters into '#'
to all means ALL. Either change the task name, or remove these test which for some reason should check if we have construction [] leave them as it is and inside hide numbers if there are more then 4, because another contsruction () I do believe is not counting for similar case.
Your solution cannot handle cases like this one:
Test.assertEquals(maskify('123'), '123')
both works elsewhere, why codeswars gives error?
I am stack on this!
Thank you!
hi, I looked at your code and noticed that you output the result to the console instead of doing return, you were told about this with a link above.
your code works but can be improved, study string multiplication and array slice, these tools will make your life easier
Hello!
If you need help training on Codewars challenges, you can try to:
#beginners
channel of Codewars Discord.somebody help me in knowing
i have zero clue on what to do
I'm just gonna leave this here.
Translation Dart
Read this: https://docs.codewars.com/training/troubleshooting#.print-vs-return
This comment is hidden because it contains spoiler information about the solution
The suggestion flag is intended to be used when someone proposes an improvement of the kata's description, or has made a fork to fix a bug, or wants a review of a translation in a new language, etc.
This comment is hidden because it contains spoiler information about the solution
Loading more items...