Ad
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    I having the same issue when the problem is tried with Rust, like I mentioned in my own post. Interestingly, when I tried the same test with Python, the exact same test case expects False.

  • Default User Avatar

    I guess there is a misunderstanding. The return value with those two arrays should be false, like you pointed out. But the test in the Kata expects true, which is incorrect.

  • Default User Avatar

    Looks like the one of the tests is not correct, and it fails incorrectly. I wonder how others passed the tests.
    The test in question is this:

    a = [121, 144, 19, 161, 19, 144, 19, 11]

    b = [121, 14641, 20736, 36100, 25921, 361, 20736, 361]

    Here the element 36100 in b has no matching squared rooted value, 190, in a, so the return of the comp function should be false. But the test seems to expect true.