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.
I'll mark this as resolved.
Your code will fail when either
array1
orarray2
isNone
Your current latest solution will always
return ""
after the first character intext
is read. Also, the output format is also wrong forres
This comment is hidden because it contains spoiler information about the solution
The step list will not necessarily be a palindrome. For instance, if I walk [n, w, w, s, e, s, e, n] , I have returned to my starting location. Your solution will check if [n, w, w, s, e, s, e, n] == [n, e, s, e, s, w, w, n] , which will return False.
This comment is hidden because it contains spoiler information about the solution
I see.
I'll read again about how to log the failed test.
Thank you.
You're misreading the logs, your code fails the 4th test, not the 1st.
But as far as I understand, 1st test case is supposed to return "true", like my code is; not "false".
From de default test cases:
And that's exactly what is happening. Just like the message indicates, your code incorrectly returns
true
when it should returnfalse
.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution