Ad
  • Custom User Avatar

    Your function doesn't return the correct result. It adds an extra space at the end.

    "The quick brown fox jumps over the lazy dog.": expected 'ehT kciuq nworb xof spmuj revo eht yzal .god ' to equal 'ehT kciuq nworb xof spmuj revo eht yzal .god'
    

    Even if you fix that, your solution also does not handle words with double spaces correctly either (as in the 4th sample test).

  • Custom User Avatar

    You checked it wrong:

    Input:   "The quick brown fox jumps over the lazy dog.": 
    expected 'ehT kciuq nworb xof spmuj revo eht yzal .god ' 
    to equal 'ehT kciuq nworb xof spmuj revo eht yzal .god'
                                                          ^ here your solution is different 
    
  • Custom User Avatar

    i'm using Javascript. first time reporting this. i did check if result matched with expect result

  • Custom User Avatar

    You need to tell us what language you tried, and show us your code. Otherwise, we do not know what to fix.

  • Custom User Avatar

    still broken sadly i had correct solution but was not right when expect out put was same as result output

  • Custom User Avatar

    Like which one? In which language?

  • Custom User Avatar

    The given solutions do not work, im not sure why? Is it because the kata changed?

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

    There are several problems with your code, about the indentation one, you know that in Python you should indent your code right? Then why is words at the same level as def line?

  • Custom User Avatar

    This comment has been deleted.

  • Custom User Avatar

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

  • Custom User Avatar

    Give me please a little hint how do i reverse words but still have the spaces

  • Custom User Avatar

    What is it that you don't understand? You have to reverse every single word in its place in the string.

  • Custom User Avatar

    I dont understand it at all, it's too hard for 7 kyu

  • Loading more items...