All well and good, I was merely confused by a previous kata which printed all test data, showing which test was being failed on final acceptance, versus this one which did not.
However that doesn't address the problem, which is this line under Remarks:
If a or b are nil (or null or None, depending on the language), the problem doesn't make sense so return false.
The "or" here is ambiguous (exclusive? not exclusive?) and has clearly lead many people to be confused by the double empty array case failing when their function returns false as implied in the quote. It's fine if the test remains but the language should be more precise.
im a beginner but my only guess is because you are comparing '161' with '11*11'.. Im not an expert but that is my guess since i struggled on this one for a while, good luck.
This comment is hidden because it contains spoiler information about the solution
thank you!
All well and good, I was merely confused by a previous kata which printed all test data, showing which test was being failed on final acceptance, versus this one which did not.
However that doesn't address the problem, which is this line under Remarks:
The "or" here is ambiguous (exclusive? not exclusive?) and has clearly lead many people to be confused by the double empty array case failing when their function returns false as implied in the quote. It's fine if the test remains but the language should be more precise.
I don't know what language you are working in, but it's probably one of the edge case tests which is testing for unexpected data types as inputs:
To solve this issue you should print the input:
How to print inputs from the kata
however you do that in your language; then you will be able to see which inputs are causing your code to fail.
This comment is hidden because it contains spoiler information about the solution
Because with sets you lose how many of each kind you have.
Why I can't compare sets, it doesn't work in one instance. when i compare sorted lists it works without any problem.
im a beginner but my only guess is because you are comparing '161' with '11*11'.. Im not an expert but that is my guess since i struggled on this one for a while, good luck.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Your code should work for capital letters too.
Thank you very much!
This comment is hidden because it contains spoiler information about the solution
Loading more items...