Ad
  • Custom User Avatar

    @Ryan12111 have u resolved this issue?

  • Custom User Avatar

    I m getting the same error
    this test is not correct i think
    as it should return false in this case.

  • Default User Avatar

    I don't know in Kotlin but in C++ looks like the node doesn't have any value, all it has is the next node. You can see that when they are instantiating the nodes in the tests, they only set the next and that's all.

  • Default User Avatar

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

  • Custom User Avatar

    No, in fact, you are not printing all test cases.

    The test case you see printed is not the one you are failing.

  • Default User Avatar

    Hi Natan, I am in facting printing all tests cases and I separate each test with 5 new lines so I don't think this is the case.

  • Default User Avatar

    you're not printing all test cases, thereby mixing up two test cases

  • Default User Avatar

    I am having some problems with test case #7, I printed out the vectors which are:
    a={2,2,3}
    b={4,9,9}

    The problem expects true and I am returning false.
    According to the problems description all the elements in b and a should be in the same multiplicity and in this case they are not, you have the #2 twice in A but its square only appears once in B, so it should return false.
    Also, if I try to hard hode to return true in this exact case (comparing to see if the vectors passed to the function are equals to those vectors), then it display the oposite, it says it expected false and I am returning true.

    Maybe I didn't completely understand the KATA's instructions, they are a bit confusing as many comments here have already pointed out.
    If this is the case, can someone explain why this specific set of inputs are supposed to be true?
    Thank you.