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.
Hey ! Seems like the 5th character on your result 'y' is your issue, it should equal 'v'.
Hi, I can´t find the error!
'grfdyjposjb lka jhqrayaoliz' should equal
'grfdvjposjb lka jhqrayaoliz'
C# tests seem to be OK, but I think you misinterpret the rules. When you have three ones, you get 1000 points. Additionally, you get 100 points for every other one. This means that when there's
1,1,1,1,3
you get 1000 points + 100 points, and when there's1,1,3,4,6
you get 2x100 points.1 one: 100 points, 2 ones: 200 points, what's the problem? It's in the examples:
There is a problem with this kata, at least in C#. It is scoring incorrectly. I had to put a special exception for exactly two 1's adds 200 points in order to get all tests to pass.
Start by printing the input: https://docs.codewars.com/training/troubleshooting#print-input
This comment is hidden because it contains spoiler information about the solution
Oh one small thing - it's much easier for people to assist you if you format your code properly; in future please read this doc:
https://docs.codewars.com/references/markdown/
which will tell you how to use the (easy) markdown format.
As a quick example - if you type:
```python
insert your code here - it will appear in a nice code block
```
it will be much easier to read.
Because you don't reset
palabra
value properly. Read this too: https://docs.codewars.com/training/troubleshooting#post-discourseHi - welcome to Codewars; you logic is basically correct but you are not "resetting" the value of
palabra
correctly. I recommend that you putprint(palabra)
after the linefor h in x:
and you will see that it is not behaving as it should.You just need to make a small modification based on the above observation and your code should work!
This comment is hidden because it contains spoiler information about the solution