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.
Good thinking, thank you for taking the time to explain it.
While writing the code I was expalining it to a friend he asked questions I then answered with the comments.
In retrospect, it is a bit too much, you are right. I need to learn how synthesize my thoughts better.
Either way, thank you very much for your feedback, and for reading my code.
I can appreciate effective commenting, but this is perhaps too much for the effect of such a function.
Good point. This solutions does not correctly handle upper camel case.
The
test_solution_randomly
function strips the uppercase letter from the start of the sentence with:So I take it this problem is only intended for lower camel case.
The problem statement should probably be made to be more specific.
I see someone already reported the issue:
https://www.codewars.com/kata/5208f99aee097e6552000148/discuss/rust#6181ac3bac59440057e75f57
Lol I don't blame you. It is very confusing, even to myself when I'm trying to understand what I wrote a year ago.
I would never write this kind of code for production. What happens on CodeWars stays on CodeWars or something, I guess.
This comment is hidden because it contains spoiler information about the solution
Doesn't this function fail to account for a string that may start with a capital letter?
Take the example "CamelCase", this function output " Camel Case" instead of the intended "Camel Case".