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'm stuck on 58!
301 warriors finished it succesfully. It's most probably some bug in your solution. BTW. 0r1CH4Lch0s has finally solved it.
It seems I have the same issue. Whenever I run the code in my IDE, it works as expected, if its ran on codewars random test, got at least 10 errors or so, though if I copy the random samples to my IDE, they all work just fine...
Sorry I accidentally flagged the above comment because it is hidden and I thought I was expanding it to see what it said.
OK, so I solved it (passed all the random tests - yay!).
But then I attempted the exact same solution again and... I fail around the 30-40th random test.
:(
I ran my function on my local IDE and I was getting the same answer as in codewars. Not the answer it was saying I was getting. Strange.
Thanks!
Hi there! Now the template solution in Python removes only trailing spaces: better?
Yes. You are right. There is a bug in Python translation. I will ask @GiacomoSorbi to fix it.
I have passed all the test cases up until "Random Tests". I am working in Python 3.
print de_nico("mguqh", "ahovcxmxanhchozghcimjp ilxgnsclz o") should equal 'oacvhxxnamhhzoccgmih jlipnxcsg loz', but I get "oacvhxxnamhhzoccgmih jlipnxcsg l oz" with my function.
print de_nico("wemuto", "vhdanjrptrrugjan"), should equal "jvhnadurprrtgjna", but I get "jvhnadurprrt gj na" with my function
print de_nico("uyt", "pmoemabhvgdjw") should equal "mopmaehvbdjgw", but I get "mopmaehvbdjg w" with my function.
Once you have decrypted the key, it seems to me that the way to modify spaces, i.e. ' ', at the beginning of each row, into the output, is not well-defined.
To clarify further, I have tried (after decrypting the key):
But none of these pass the "random tests".
Thanks for help in advance