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
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