Ad
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    it is fair. its categorized as literally the easiest type of problem on this website.

  • Default User Avatar
  • Default User Avatar

    if i knew about the setfill and std::uppercase, this couldve been a lot shorter. thanks other people!

  • Default User Avatar

    Could you elaborate a bit? The order of operation is the same for this problem as it always is

  • Default User Avatar

    thanks! i didnt even know how to do that

  • Default User Avatar

    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

  • Default User Avatar

    in my opinion, a kata should be descriptive enough to not allow for "different interpretation" from most of its takerstakers

  • Default User Avatar

    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

  • Default User Avatar

    Whats being passed as the parameters for the second test???

  • Default User Avatar

    thats only your opinion.

  • Default User Avatar

    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.

  • Default User Avatar

    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.

  • Default User Avatar

    this was good!

  • Default User Avatar
  • Loading more items...