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.
It can only remove both sides '0'.
not a kata suggestion
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks for this! I was struggling with this one.
Out of curiousity, why don't you have to use r.address since your aliased repositories?
Fairly new to SQL ~ why is the LANGUAGE SQL bit required?
Well the instructions aren't matching up with the story of the challenge. [N,E,S,W] => [N,E,S,W] is literally wasting energy and the whole point of the challenge is to be efficient.
Because there is no problem with the kata (issue), the problem is in your code or you didn't get what you should do (question). When you think there is a problem with the kata, first check how many completions there already are in that language, if there are many, then suspect your code is the culprit. When you're sure there is a problem with the kata, provide the input, the value your code returns and the expected value, or in some cases your code marking your post as having spoiler content and using markdown formatting (specially in Python where indentation matters)
I already told you, East, East, etc. is not the input, that's what your function returned. Also note, directions are all capitalized like
EAST
,WEST
, etc. So the value you showed was generated by your code.Sorry that was not my question ~ based on the rules in the Kata I do understand how and input of 'east', 'east', 'east', etc. should return west? or is saying that my input returned 'east', 'east' 'east' and it should have return 'west'?
also, why mark as resolved before waiting for a response? is that just like a CS thing?
The first value in
A should equal B
is the value your function returns and the other is the expected value, if you want to know what was the input value, print it before doing anything else. Also, don't mutate the input, it could lead to wrong expected values in some tests.This comment is hidden because it contains spoiler information about the solution
One thing I did, was make an empty list to start with, and then returned that list. Then you don't need your initial if statement.
Can you explain what that 'recursive' means in this context?
How would you overcome that?
Loading more items...