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.
This comment is hidden because it contains spoiler information about the solution
If both strings have the same length, both your vars
shorterString
andlongerString
ares2
. So your code ignoress1
content and you thinks1
ands2
are equal. Always when debugging print the input values as they were (without any processing from you), it'll help you next time.This comment is hidden because it contains spoiler information about the solution
Random tests strings (because there is no fixed test with that input) are randomly generated, and it would be very very rare both string were exactly the same. I've checked the control function and if the strings were those, the expected output would be
'ghjlqrtuvxz'
. Try posting your code marking your post as having spoiler content.Javascript, thanks for the heads up.
When reporting a problem, state the language (more if the kata has several like this one) so it can be checked.
When submitting my attempt, I am tested on the same string for s1 and s2, "jjvvvrrqqqqhhhhlxxxxhhggggguuzurrvvvtt". Somehow, it tells me that the expected output for all the uniqure characters in this string (s1 and s2 BOTH equal this string) is "ghjklpqrtuvwxyz". There is absolutely no k in this string, or a p, or w, etc.
I am also hit with 13 other errors of the same nature - how is this possible? Is there anyway this can be checked, because I know my solution is right, I pass 95%, but with these answers, it is obvious that the expected result is incorrect.
I also have screenshots saved locally