Ad
  • Custom User Avatar

    Your code will check whether the last triplets in num1 exist in num2, not all the triplets in num1. A slight modification in code blocks should fix it.

  • Custom User Avatar

    which takes numbers num1 and num2 and returns 1 if there is a straight triple of a number at any place in num1 and also a straight double of the same number in num2.

    Only triples on num1 and doubles on num2 of the same number. If that's not what you were asking, rephrase the question.

  • Custom User Avatar

    May it be double of triples in num 1?