Ad
  • Default User Avatar

    We seem to be talking past each other. The logic is, you find a triple, check if a double exists. If not, look for another triple, see if a double exists, rinse repeat. Having multiple triples shouldn't trip up your code. I'm not sure why your code would short circuit by looking at just one triple/double (i.e the first one you find) pair and not consider the rest of the numbers after it?

  • Default User Avatar

    Hey mate. It doesnt matter how many triples show up, there will always be just one double i.e matching up with one triple. So num1 could consist of just triples, num2 will have just one double and vice versa

  • Default User Avatar

    Hi. In your example 888 and 88 are the only pair, not sure what you mean by multiple doubles/triples?

  • Default User Avatar