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.
The description should have included at least one full example for the value of
n
.python new test framework is required. updated in this fork
Somebody help me. I dont understant what I need to return for empty input.
Where I can find this information? If your kata can accept empty input, you should describe what function need to return. Hate this stupid Assertion Error.
AssertionError: combinationLock([[],[],[],[],[],[],[],[],[],[],[]], [135,90,315,225,0,0,315])
Please use new python test framework.
Excellent kata! Except for the fact that it really has nothing to do with combination locks. But I can see where the idea came from. As @docgunthrop pointed out, the description about real combination locks does not really apply to this kata.
To make it more like a combination lock, I suggest that the 'combinations/rotations' be relative to wherever the dial is in the previous combination, and also include negative (counter-clockwise) rotations. It would only require minor changes to the solutions we already have, but I think it would be worth it to create a realistic scenario.
Some issues to clear up:
235
should be225
.