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.
I got the same error because i was attempting to print the arr while testing my solution. Once I removed the print the kata worked without issue.
Thanks, I think I fixed the random tests.
I see a test where r=6 and the answer is Sheldon, as expected. Not sure where you are seeing what you are seeing. I solved in JavaScript, maybe there is an error in a different language.
"IIV" is correct roman numeral format. To represet three you would use "III"
Added a three random test cases.
This comment is hidden because it contains spoiler information about the solution
Please reread the instructions. You are looking for the number which is not like all the other numbers in the string in terms of evenness or oddness. In other words you are looking for the single odd number or the single even number.
eg:
iqTest("1 2 1 1") => 2 // Second number is even, while the rest of the numbers are odd
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
I got the same thing. What it means is that you need to make sure that obj not only has those properties, but that they are functions. obj.sayHoHoHo = true; should not count because it is not a function, it is a boolean. At least that is what I am assuming the issue is.