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.
how can you use your function iside the function in the last line
I passed 3 tests but I get this error
Traceback (most recent call last):
File "tests.py", line 42, in
test.assert_equals(dirReduc(a), [])
File "/workspace/default/solution.py", line 3, in dirReduc
if arr[i]=="SOUTH" and arr[i+1]=="NORTH":
IndexError: list index out of range
I figured it out myself
my code is similar to this
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This code was made by more than a human brain
love the term clamp
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution