Ad
  • Custom User Avatar

    For example, the log for one of the Hard tests says: ABCDEFGHIJ.

    That doesn't sound right. Can you say which language Kata you are using so I can see it happen?

    ~

    FYI - the hard tests should be

        assertEquals("AGFEDCB", Dinglemouse.antBridge("GFEDCBA", "------....-.---"));
        assertEquals("EDCBA", Dinglemouse.antBridge("EDCBA", "--..---...-..-...----..-----"));
        assertEquals("GFEDCBAJIH", Dinglemouse.antBridge("JIHGFEDCBA", "--........------.-........-........---....-----"));
        assertEquals("CBAJIHGFED", Dinglemouse.antBridge("JIHGFEDCBA", "-.....------........-.......-.......----"));
        assertEquals("GFEDCBAJIH", Dinglemouse.antBridge("JIHGFEDCBA", "-------.......-.......-"));
        assertEquals("EDCBAJIHGF", Dinglemouse.antBridge("JIHGFEDCBA", "-------.......-.......-.......-"));
    

    But, using some console.log or printf or System.out.println (or some equivalent function for thelanguage) you can log the input (ants, terrain) values yourself.

  • Custom User Avatar

    I'm not sure why this is flagged as an ISSUE. AFAIK there are no problems with the hard tests. Anyway, if you suspect Kata problems, please say the language so someone can confirm your report. But if there are already multiple solutions for your languange then any issue is more likely to be in your solution.

    As for guidance, I am not sure -- the tests are called "hard" for a reason, so you may have to go to pencil and paper to see where you went wrong. IMO, it is suspicious that FEDCBAJIHG and GFEDCBAJIH are almost the same except for the G at the wrong end, so it might just be a case that you need to iterate your logic one extra step?