Replies: 1 comment 1 reply
-
Your problems mostly are caused by coincidence of following factors:
Currently accepted practice for C kata on Codewars is that they are allowed to use generic, language-unaware descriptions, but C translations should at least explain requirements and parameters in the initial solution setup, which you see when entering the kata trainer, for example in a following way: As you see, kata use various techniques for arrays, because C gives many possibilities:
In C, the word "return a value" can sometimes ambiguously be understood as "return it by filling in an output argument". And since these are very common patterns in C, users are expected to be aware of them. Having said that, there are also old kata, or C translators who do not conform to the above recommendation, and create totally uninformative snippets: While a semi-experienced C programmer can deduct what these are so-called output arguments, for a newbie the meaning of It could be possible to make a requirement for every kata to have two descriptions: one for C, and another for languages which make work with arrays easier. But for now it was decided that this would be too tedious, kata would be difficult to maintain, and language-specific descriptions cause some additional problems. But I can see how i could make some things easier, especially for total beginners. My recommendation for you would be:
Have fun, and good luck! |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm relatively new to codewars and to coding (at least in C). While I can solve some katas relatively fast, I found that some easier ranked katas are poorly worded and it is hard to understand the exact outcome that the author wants. At least when you're not familiar with the programming language.
Here some examples:
Why isn't there a kind of structure or checklist that every Kata needs to pass? Imho every input into the function should be explained and the wanted result (e.g. returning sth., store or change a memory value) should be stated explicitly.
Pls tell me if you had similar experiences as a beginner or if I'm just missing sth. obvious.
Ty
Beta Was this translation helpful? Give feedback.
All reactions