Ad
  • Custom User Avatar

    While I do think that many of the issues people are reporting with this kata could be solved by reading it a bit more closely, I also think that the description for this kata leaves something to be desired. The ability to read insructions carefully and accurately parse them is an important skill in programming but I think the (description for this) kata is just poorly organized/written.

    Perhaps:

    • starting with the more general overview would be helpful, as it gives a more broad understanding of the problem
    • giving function parameters more descriptive names would allow for a better understanding of the problem, not to mention that using specific & descriptive names is an important part of writing understandable code
    • adding a note about the rounding could avoid confusion, instead of relying on one iteration in one specific example to communicate how rounding should be approached in the kata. If theres a note about percentage conversion, which is arguably more straightforward and obvious than how rouning should be performed, why not make one for rounding requirements?
    • describing the input limitations could be done in the order that the parameters are listed in the function definition and each one could get their own line.

    I feel like I've been frequently seeing discussions like the one for this kata in this 8-6 kyu range. In the end everyone seems annoyed, including the author of the kata. I think a lot of this annoyance could be avoided by writing more explicit and clean descriptions. /rant

  • Custom User Avatar

    The mistake is that you're looking for individual digits, not whole numbers.

  • Custom User Avatar

    Although it can be gleaned from the examples, the description should state that consecutive integers are considered as one number.

    E.g. you should extract and sum 20 + 5 from 'hello20world5'

  • Custom User Avatar

    I'm only about 5 years late here, but I think it's great. You walked through the examples in a clear fashion and
    that helped me understand what I needed to do! Had a lot of fun solving this one.