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.
VB Translation available
Try to phrase a question. We're here to support you but not to analyse your code.
Fixed!
Thanks! I forked your Java translation and recreated the original test cases. Everything else has been flawless
Please explain to me why?
Random Tests are definitly needed to prevent hard coded solutions
Replaced
assertTrue
andassertFalse
byassertEquals
return
listChar.Count == 0
would have worked as well. There's no need for the? true : false
part.This comment is hidden because it contains spoiler information about the solution
got
-1
in C#, tooE.g. the
+
or$
character are special characters in regular expressions. If you want to use'+++regextestcase+++'.trim('+')
most of the solutions using regular expressions will get into problems.renamed
alternateCase
toAlternateCase
as this is fulfilling the C# naming conventionsadded some random tests
refactored the existing test cases
Ok, published it again.
C# translation kumited
The problem still exists?
Input: "x!!!C!kv" | Actual: "x!!!C!kv" | Expected: "xCkv"
Loading more items...