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.
This comment is hidden because it contains spoiler information about the solution
I also have this problem. So ....
It doesn't return one char, but string which is part of one of the PIN strings. Like, for "123" input, p can be "12", for example, and d can be "3".
Thanks, got it!
All written tests are passing for me (thanks a lot for them!), but some tests running during submit are failing:
one undo call - Expected: {"x":5}, instead got: {"x":5,"y":6}
one set call - Expected: {"x":5,"y":66}, instead got: {"x":5,"y":6}
The objects does not change - Expected: {"x":5,"y":66}, instead got: {"x":5,"y":6}
one undo call - Expected: {"x":5}, instead got: {"x":5,"y":6}
one redo call - Expected: {"x":5,"y":66}, instead got: {"x":5,"y":6}
Redo all actions - Expected: {"x":5,"y":8}, instead got: {"x":5}
Redo three actions - Expected: {"x":55}, instead got: {"x":5}
Since I don't see what are actions in these tests, it's really hard to investigate the problem... I would appreciate a hint. Thanks!
OMG this is crazy :) didn't even think about regex here, but it's a great example how regex can be applied
I'd suggest getting rid of code duplication here.