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.
Your code not working is not an issue. An issue is a bug in the kata. Please refer to the documentation: https://docs.codewars.com/training/troubleshooting/
Do you mean
\"abc
? It should be"abc
.Then
\\\"abc
would be\"abc
.But I check the random test. There is no double quote in it, so you don't need to worry about that.
Here is the test chars:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~!@#$%^&*()_+-={}[]:'.,?<>`\\/
So, when I have string s ="/"abc" the correct answer would be 4 ("abc) or 5(/"abc) then?
If there is a double quote in it, that would be
\"
.I got the same problem with you. Because I use the
console.log()
to show something.By the way, if you want to show some code. You should use triple
`
not'
in Markdown.I have such error after testing: https://freeimage.host/i/hzEJl1https://freeimage.host/i/hzEARs
and if link expired, here you have transcript:
'''
Testing for:
s = "+8j4
R_gG
41a0,jC9!yL7*v'\<8x}oyJxzE3560pH5FR=jSgpgs~2f=:?$%4sb_Z[a4DJCzW+~1ET3}0<#gb]LxK{*BYjVxPM)]]4Hexpected 30 to equal 27
'''
so does it mean that the string itself has a double quote mark (") in it at the beginning?
in other examples theres opening and closing quotation mark, but now always (as above), so it's confusing...
in the string 'hchzvfrkmlnozjk' author suggest that answer should be 'chzvfrkmlno' (11 chars) but it can be also 'vfrkmlnozjk' (also 11 chars). I think that theres no other possibility to get longer substring...
so @R-N-Wata, theres no way to include 'j' and have more than 11chars
The description mention that division shoud round numbers down so there should be Math.floor(a/b) instead parseInt() in my opinion.