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.
can anyone please hep with this error i got it says
expected { pos: [ 3, 7 ], peaks: [ 6, 3 ] } to deeply equal { pos: [ 3, 7, 10 ], peaks: [ 6, 3, 2 ] }
for this input[1, 2, 3, 6, 4,1, 2, 3, 2, 1]
how is the 10 indexed element a peak and where even is the 10 indexed element? and thanks.dont need use return if function wrote in 1 line
very clever and easy to understand answer
Very clever solution, and well noted from the WP article the congruence formula. Wouldn't like to see this in Production code though without comments in place explaining the formula.
very clever solution
nice design and good code :]
nevermind i got it :]
the output is #
What does your solution return for following test case? What should it return?
generateHashtag(" ".repeat(200))
You are getting the same error all the time because you have the same bug all the time.
We do not know what bug it is, because we do not know your code.
can anyone please tell me why do i keep getting this same error?the error, Still an empty string: expected '#' to equal false
This comment is hidden because it contains spoiler information about the solution
This seems to be a very poorly written test. A lot of the conditions are only made clear in the test cases, and the description explicitly states that the method should return false in some cases and String in others, yet the method return value is String. It's not clear that it actually means it should return an empty string when it's invalid, unless you look at the tests
Try logging what
str2[i]
contains after you split it. You should know what you're doing wrong from there.This is an issue of your code, not the kata. So please, next time you encounter error from your solution and you want to ask in discourse, don't flag it as issue.
Resolved.
can anyone help me please the compiler for some reason keeps saying that it can not convert my string to upper case
Loading more items...