Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
@Ryan12111 have u resolved this issue?
I m getting the same error
this test is not correct i think
as it should return false in this case.
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.
This comment is hidden because it contains spoiler information about the solution
No, in fact, you are not printing all test cases.
The test case you see printed is not the one you are failing.
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.
you're not printing all test cases, thereby mixing up two test cases
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.