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.
Not an issue
Trying to solve using Python3, one test passes (and every number I pass to my algorithm returns the correct prime factor decomposition with testing I've done outside of this kata), but then another fails with: '(2)' should equal '(7919)'
Can someone help explain to me what this might mean?
I think there is a difference between "" and ","
Using Python 2, for the test case:
Test.assert_equals(last_digit(2 ** 200, 2 ** 300), 6)
Locally, I get the correct answer returned, which is 6. But when I try in the editor here, I get:
Traceback: in <module> in last_digit TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'str'
The problem is that it asks for the function to print the diamond. Guess what, it only accepts return. You're not supposed to have the word print in the whole damn thing. So I wasted hours on trying to debug when the only problem was that it doesn't give you the correct information.
This comment is hidden because it contains spoiler information about the solution
So many people have issues with timeout errors, re-write the test cases!
Like @paolo435 I just re-wrote my Python solution in JS, and it passed.
Using Python, upon submit, I'm getting:
✘ 4 should equal 2
Any idea what's going on? Is there a way to actually see the test cases being used?
I have a Python solution to this that works with any number I pass to it, but when I submit to this Kata, I'm getting this error:
✘ None should equal ' *\n***\n *\n'
What does this mean?
What's the deal with this Kata? All tests pass, except test for null array, where I get back:
✘ Must work with no names - Expected: , instead got: ,
What's the differnece between , and , ?
This kata works.
Your code seems to add the previous arguments on the current one. Also "Y" is not considered a vowel, so you don't have to get rid of it (I know the description doesn't fully disclose this but yeah). If still stuck, just post code and I'd be happy to help.
For the love of god, please specify that Y is not considered a vowel in the description. I understand that in english Y can be a vowel or a consonant depending on the context, however in other languages such as mine (swedish) y is ALWAYS considered a vowel. While this proved a valuable learning experience in how the english language works, it should really just right out say that Y should be untouched by the replace.
Oh looky here, another broken Kata....yay...
My solution passes all tests, except the last one, wherein the failed test result is:
✘ Expected: N ffns bt, Yr wrtng s mng th wrst 'v vr rd, instead got: Ths wbst s fr lsrs LL!N ffns bt, r wrtng s mng th wrst 'v vr rd
So apparently, the test isn't setup properly? When I actually pass the string it looks like it wants to be testing, it works. But this failed test result looks like extra text is being added.