Ad
  • Custom User Avatar

    there is no need, it is a nul-terminated string

  • Custom User Avatar

    Should pass in length of the buffer

  • Custom User Avatar

    🤖 Codot says:

    Your code defines the function with the name "reverse_text", but the kata requires the function to be named "reverse_words". Codewars will look for a function with the exact required name in order to test your solution, and will fail if it can't find it.

    Your solution does not conform to requirements, it's not a kata issue.

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

    data science

  • Custom User Avatar

    The error everybody is haviing (I think) is that they aren't able to solve the double spacing "bug" because your meant to find a way to fix the double spacing and put it back.

  • Custom User Avatar

    Я на питоне решил в редакторе все верно но запускаю в тестах не проходит а в выводе указывает на то что я вернул всего одну букву.

  • Custom User Avatar

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

  • Custom User Avatar

    I was looking for an 8 kyu kata with the same name and I was surprised that it is a little more difficult :)

  • Custom User Avatar
  • Custom User Avatar

    shevketのコードが間違っている。text[0]は何だと思うか。

  • Custom User Avatar

    It's never проблема с ката.

    Well, maybe sometimes. But rarely.

  • Custom User Avatar

    Я написал решение используя python мой у меня вывод верен и слова и пробелы. Подскажите может я что то не увидел или проблема с ката?

  • 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).

  • Loading more items...