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.
This comment is hidden because it contains spoiler information about the solution
it is fair. its categorized as literally the easiest type of problem on this website.
you just explained why youre wrong
if i knew about the setfill and std::uppercase, this couldve been a lot shorter. thanks other people!
Could you elaborate a bit? The order of operation is the same for this problem as it always is
thanks! i didnt even know how to do that
thanks for telling me that. i assumed that it wouldve been impossible for the person solving the kata to see that, but could you suggest an alternative to making random test? im inexperienced in making katas
in my opinion, a kata should be descriptive enough to not allow for "different interpretation" from most of its takerstakers
exactly what i did. For each test, i printed out the two parameters and a number (to see if spaces were passed too) and for that specific one, it looked like 2 spaces were passed, either one of the two had 2 spaces and the other has none, or they each have a space. But when i tested if they were actually spaces, it failed, so they cant be spaces. For some reason there are two spaces there and then the number.
Edit: I just tested it with empty sttings and it works. But why did it show me two spaces and then the number? I even copied and pasted and it pasted two spaces instead of nothing? Also the kata definately should've specified what should happen with empty strings
Whats being passed as the parameters for the second test???
thats only your opinion.
I solved this in class but i had to leave before i submitted it. I didnt get a chance to refactor it, so in my next class i tried to, but all the code disappeared. Now codewars has recognised that i solved it (since i can veiw other solutions) but i technically dont have one now.
Does anyone else agree that this was a bit too easy for 6 kyu? I think it could become a bit more challenging if you only had to reverse the actual letters, and things like numbers and symbols would stay in their original place.
this was good!
D:<
Loading more items...