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.
Looks like sample tests expect
uint
as argument, but Attempt tests expectint
. You should modify line 9static void Act(uint expected, uint n)
tostatic void Act(uint expected, int n)
, and you should raise this as an issue with the kata :PChanging the return type to long is insufficient, but required. (unless you're really lucky with tests?)
You must also cast the long to int, as some random tests expect the overflow value.
The c# solution is currently not solvable without this realization.
Because the prefix need to be ignored, read again the last paragraph.
Hi ah2023,
When I try your solution it passes all the tests, so I can't reproduce the issue. But in general, if you print out the customers variable at the top of your code, you should be able to see what causes any failing test.
Regards,
brodiemark
what about there being the Et-sign at the start of the string? When it appears like this, it isn't replaced?
Hi. You are not quite right about how you perform the conversion. I'm facing the same problem.
The rule says that "A letter with adjacent letters j and t is not converted." Accordingly, the transformed sequence looks like this:
jptddwd
0 + 3 + 0 + -2 + -2 + 4 + -2 => 1
, therefore answer is "Left side wins!"Agreed.
Me too, I'm using python and I acctually went through the test too, but it was the random test that was wrong! D:
Please help.
This comment is hidden because it contains spoiler information about the solution
Thanks!
0<1
is one char shorter thantrue
and0<0
is two chars shorter thanfalse
..Seems also, uncharacteristically for me, I didn't explain it...
Yes, it has been raised as an issue numerous times
Strings passed in will consist of only letters and spaces
same problem
This comment is hidden because it contains spoiler information about the solution
This.
Loading more items...