C# method runs in Visual Studio; crashes in Code Wars
I wrote a C# method to solve this Code Wars problem:
Write a method for strings. All words must have their first letter capitalized without spaces. For instance: camelCase("hello head case") => "HelloHeadCase" camelCase(" camel case word") => "CamelCaseWord"
My code works correctly in Visual Studio; however, when I run it in Code Wars, it throws an IndexOutOfRangeException. I'm thinking the problems must be how the web site handles loops but otherwise I'm baffled.
0 comments:
Post a Comment