Ad
  • Custom User Avatar

    I'm not sure if this is what you're describing, but it sounds similar to a problem I had where I was trying to find subsequences when the question is really asking for substrings (it says find the largest sequence, which is a little misleading). For instance, if you have the number 957923992590, this has five 9's, and indeed the largest number that is a subsequence of these digits is 99999. However, the solution actually needs the largest substring (number formed by consecutive digits) from the number, which in this case would be 99259. Hopefully that answers your question.

  • Custom User Avatar

    Fixed, thanks.

  • Custom User Avatar

    Sorry to have upset you..? I do have a solution that works (I do have to validate it after all) so I'll just put that in.

  • Custom User Avatar
  • Custom User Avatar

    Thanks for the heads up, it should be fixed now.

  • Custom User Avatar

    Thanks for the heads up. I figured having them be the exact solutions wouldn't be much of a problem, but I forgot people could then just find exact values and hard code in the pre-writtens. I've changed the random tests to not be perfect powers.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Getting a weird error whenever I try to test. It keeps saying

     TypeError: Cannot read property 'replace' of undefined
       at compareResults    
        at Object.exports.runInThisContext 
    

    Seems like maybe the testing function is encountering an error..? Maybe my code was just so woefully bad that it broke everything, but either way it doesn't flag a line or error in any code that I can see so there isn't anything I can do to fix it.