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.
lol
Holy cow....
wha- why?
hey!
...
Your function gets the start node of a long chain of nodes. But somewhere this chain starts to loop. You should count and return the numbers of nodes that create the loop.
Just run your code and indeed it's just too slow. You'd have to find some more performant algorithm.
It would be also helpful if you used proper code formatting when posting code blocks :)
Resolving as not a kata issue.
I didnt have a chance to run your code, but just reading it it seems to have insufficient time complexity and is most probably too slow.
Expected approach is O(n) in time, and O(1) in space, while your solution seems to be O(n^2) in time and O(n) in space.
this guys a legend... sadly he had to be suspended
fix your kata
please make a python version... quite excited to try my hand on this!
Can anyone explain the terms of the assignment? It is more or less clear what should be at the output and it is not at all clear what is at the input. It is impossible to understand.
the first preset of code given to me was the function even without a variable LOL
fix your kata dude
whoever made this is a legend
respect!
i didnt quite understand... i suppose my algorithm is supposed to take "head, "body", "tail" and put it in the right format which is where its going wrong. As i figured, in the tests, Han toki and shin is given which my algorithm couldn't understand.
Loading more items...