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.
ngl this is the most readable and clean version in my opinion. My only issue with it is that at a glance it looks like you're reversing a string and then making it inot an array just so you can make it into a different string. It feel like an extra step but is it cus string(the type) is immutable?
Would this work on foreign computers as well? Computers that aren't set to English or another western writing system might not respond in a way that solves the exercise because their language might not have upper and lower case. So I'm not sure about this being best practice.
Greedy companies I bought a evaporator, so I will take full advantage of it....
Using CultureInfo.CurrentCulture.TextInfo.ToTitleCase is a good attempt to simplify capitalization, but it won’t fully work for Jaden Case in this context. ToTitleCase capitalizes the first letter of each word but does not affect subsequent letters. For example, ToTitleCase("hELLO wORLD") would result in "HELLO WORLD", which isn’t what Jaden Case requires. Jaden Case should only capitalize the first letter of each word and keep the rest in lowercase.
To fix this, you can convert the phrase to lowercase first, ensuring only the first letter of each word is capitalized:
CultureInfo.CurrentCulture.TextInfo.ToTitleCase(phrase.ToLower());
A faster approach would be to just use two for loops and have loop 'j' run when j < i. Then, you'd keep the logic of your if statement for the hyphen.
I love this solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Would this not work with words like "of" or "the"?
The most concise version!
Pretty, kind of clever, but not the cleverest nor very performant. Why iterate twice when you can have a single for loop?
Instead of one run in search of the maximum and minimum , it is run twice here.
This comment is hidden because it contains spoiler information about the solution
The solution is not suitable for cases where the user suddenly wants to write a word through Caps Lock
This comment is hidden because it contains spoiler information about the solution
Loading more items...