Ad
  • Default User Avatar

    Wow! Cool! But for some reason it does not work when checking. ) Maybe you need to import something? )))))))))

  • Default User Avatar

    Yes, Chrono79, you are right) I corrected the code and everything worked)

  • Default User Avatar

    Thank you, Chrono79, I will look again closely)

  • Custom User Avatar

    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

    Read that again, both tests are ok.

  • Default User Avatar

    Unfortunately, kata does not work correctly:

    @Test
    public void test5() {
    assertEquals(0, Kata.TripleDouble(451999277L, 411777228L));
    }

    @Test
    public void test6() {
      assertEquals(0, Kata.TripleDouble(1112L, 122L));
    

    I corrected to 0 to 1.
    @Test
    public void test5() {
    assertEquals(1, Kata.TripleDouble(451999277L, 411777228L));
    }

    @Test
    public void test6() {
      assertEquals(1, Kata.TripleDouble(1112L, 122L));
    }
    

    After that, the tests worked successfully.
    But by clicking "ATTEMPT" an error test 6 appeared and I can not control it.