Ad
  • Default User Avatar
  • Default User Avatar
  • Default User Avatar

    oh my god, thank you so much. i even haven't heard about that

  • Custom User Avatar

    Yeah I just wanted to point to the same page and yet again I remembered that I have the "How to translate a kata?" tutorial in my backlog for waaaaay to long :(

  • Custom User Avatar

    You can refer to the official documentation, but I think it's quite incomplete about this topic: https://docs.codewars.com/authoring/guidelines/translation

    Once you solved (or forfeited) a kata, you should see new tabs appear at the top page, below the title and the statistics: Solutions - forks - ... - Translations .

    If you click on Translations, you get to a new page, where you can see, at the top, the translations awaiting approvals, and below all the approved translations. Between them, you have a box Translate. If you click it, you get to the translation editor page. You can select any languages the kata has not been translated into (for example PHP for this kata), and then you can edit the translation, reference solution, sample tests, attempt tests, and solution set up. Once you have your translation published and think it's ok, you can post a suggestion on the Discourse page, so that other users can review it and approve it, fix it or give advices about it.

    If you have concrete questions and have the opportunity, maybe it's handier to ask them on the #help-translate channel of CodeWars' Discords server (link is in the left panel).

  • Custom User Avatar

    How can we particapate for this. If for exemple I want to add it myself ?

  • Custom User Avatar

    One could say the same for other 51 languages, or thousands of other katas... suggestions are expected to be concrete ideas of improvements of a katas, not plea for new languages. There will be a translation in PHP when someome works on it and gets it approved.

  • Custom User Avatar

    Too sad that there is no php version for this

  • Custom User Avatar
  • Custom User Avatar

    I published a new version of the translation, if you want the new set up, save your code locally and click reset in the trainer.

  • Custom User Avatar

    This is a variadic function. You can have a look there to see how it works: https://www.freecodecamp.org/news/args-and-kwargs-in-python/

    You can add *args as arguments and do your job.

  • Default User Avatar

    python
    why is there no arguments in this function? and why the test arguments are just comma-separated numbers? should it be a list? please, correct me if i'm wrong

  • Default User Avatar

    thank you so much

  • Custom User Avatar

    thank you.

    so the formula would be 4 * x + 5 * y = z
    And we are looking for the biggist z out there that does not match the equation for any x and y values of positive int, x and y do not need to be the same. It now makes sence.

    I want to try it but first, I needed to understand what is the task. (at least I am not the only one with the same problem based on the coments :D)

  • Default User Avatar

    If you have only 2 types of coins/money denominations (Google translate tells me that this is "номинал денег" I hope that's correct) - let's say you have infinitely many 2-euro coins and infinitely many 3-euro coins:

    You can make the TOTAL amounts
    2 euros: 1x 2 euro coin/
    3 euros: 1x 3 euro coin/
    4 euros: 2x 2 euro coin/
    5 euros: 1x 2 euro coin, 1x 3 euro coin
    etc.

    but you CANNOT make 1 euro total.

    For a given pair of values (here the pair is 2,3) find the maximum total you CANNOT make.

    Hope that helps!

  • Loading more items...