Ad
  • Custom User Avatar
  • Custom User Avatar

    make a function that can take any non-negative integer as an argument

    Thanks, but no.

  • Custom User Avatar

    @awesomead thanks for that description lol he would be giving the question away if he gave to much detail this is like a 4th grade math problem I was feeling dumb

  • Custom User Avatar

    Maybe. Yet on the other hand, you will most likely come across many kata in the future that do the opposite, and you'll see tons of issues in the discourse complaining about how the specification is insuffient, or the expected output wasn't specified properly, etc. etc. Thousands of things that can throw off thousands of users individually. It's better to be verbose. You will get better at parsing such descriptions, filtering out the necessary information. Remember that a kata has translations into many different languages but only one description that needs to satisfy all of them.

  • Custom User Avatar

    "You are given a list of fractions, each tuple consisting of a nominator and a denominator.. Your job is to transform each item such that the resulting fractions have their original value, but share the same denominator. It's quite clear from the example in the description what this is all about."

    Your answer has a little more than one line, and yet is way better than the entire description of the kata. OP has an excelent point, the description is way to much that confuses more than describes.

  • Custom User Avatar

    The description is as descriptive as it needs to be. It demonstrates the input you can expect, the output you should produce and an example of how you might do it. If it was more on the nose it would give away too much and ruin parts of the challenge for some people.

    So, for your consideration, here's an attempt at explaining what the kata wants you to do:

    You are given a list of fractions, each tuple consisting of a nominator and a denominator.. Your job is to transform each item such that the resulting fractions have their original value, but share the same denominator. It's quite clear from the example in the description what this is all about.

  • Custom User Avatar

    you can always do it, but do read documentation first, I believe Johan already linked one in a previous post.

  • Custom User Avatar

    Read what documentation there is ( there is a lot more than even just a year ago ), create but DO NOT PUBLISH translations, and target experienced kata authors and explicitly ask them to review the translation instead of blindly approving it on faith ( lots of authors will do that, especially if they don't know the language ).

    Otherwise .. how do I put this nicely ? Please go sit in a corner, quietly, for a little while. Not in shame, not to contemplate your sins, but so you don't make more work for other people. Or go solve some more kata. Or read translations. Or a good book. :]

    With a little experience, translating kata is quite doable. You'll get there.

  • Custom User Avatar

    Inexperienced kata author.

  • Custom User Avatar

    Please don't make a new topic for each additional message you have to say about the C# translation debacle.
    Also, don't add spoilers in the main discourse.

  • Custom User Avatar

    How did it get approved?

  • Custom User Avatar

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

  • Custom User Avatar

    Ternary (conditional) operator.

  • Custom User Avatar

    No problem then. Please read this: https://docs.codewars.com/training/troubleshooting/#miscellaneous

    To report an issue, we need to get what the problem is, so, next time, give us all the details (language, input, output, why you think it's wrong, etc.) please. You were asking for clear instructions, and I copied/pasted the current ones for you to pinpoint what was confusing you, your reply was I didn't understand, so, you could have explained again what you meant or given an example. Sorry if I didn't get what you meant. We solve several kata issues on a daily basis, most of the time, they aren't issues at all.

    Now that you have solved the kata, and if you still think instructions need to be clarified, please, suggest new ones.

    Cheers.

  • Custom User Avatar

    Sorry, but if you don't mention the language and give an example with the input value and the expected value, then I'll close this.

  • Loading more items...