Ad
  • Custom User Avatar

    This was the example given: "In the following 6 digit number:

    283910

    91 is the greatest sequence of 2 digits."

    You can see that if you were about to pick the largest from right to left and left to right then 93 would be the return instead, but this picks 91. I think when they say largest "sequence" they mean from left to right only. Does that answer the question you were asking?

  • Custom User Avatar

    Yes the random tests are clearly wrong, it has 7 and 14 confused with each other. It expects [0, 1, 1, 1] ==> 14 when that is 7 and vice versa.