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.
That's what I was missing, the keyword within. Thanks a lot, I am going to go over my code now!
Thanks for the reply. Now I am clear on the incrementing and decrementing part. However, I am still unsure about how the numbers 110 and 799999 should return 1. When adding 2 to both of them, you get 112, and 800001, which as far as I am concerned, are not interesting numbers. What am I missing? Thanks!
My code fails with the incrementing and decrementing sequential sequences. However, this is because I don't udnerstand what the problem means by sequential. For example, why are 122, 112 or 800001 interesting numbers?
@daimonji, I had the same thought but did not know how to implement it. In your code, 'if poss[c]' is always False as both values in poss are equal to 0. Can you explain?
@Haksell, correct.
This comment is hidden because it contains spoiler information about the solution
I like this one the best, it's by far the clearest one.