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.
Ik there are better ways but originally I read the problem wrong and thought I'd be given an initial guess for what the password was and I had to come up with all possible solutions. So I treated it as a markov chain problem, that way I could consider the observation as an initial state and build passwords from there. So once I realised I was wrong I didn't really want to scrape everything so I came up with this approach.
Ahh I was wondering how to automatize the creation of the number functions thanks!
Hi. I've been running into the same error with the Looo...ong Cat test and another one where the final hashtag is longer than 140 characters. According to the tests I should be returning False instead of whatever it is I'm returning. However I've been debugging my code in pycharm to see what was going on and what I was returning... my code IS returning False for those cases yet here it is not? I'm not sure what's going on.
EDIT: Nevermind I'm dumb. I don't really use twitter (ig it's X now) so I thought the length of the hashtag was counted after the "#" so I was substracting 1 to the length of the final string.
Just checked and this approach should have the same complexity as the standard of using bitwise operations (O(k))