Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    Ahh I was wondering how to automatize the creation of the number functions thanks!

  • Custom User Avatar

    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.

  • Custom User Avatar

    Just checked and this approach should have the same complexity as the standard of using bitwise operations (O(k))