Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
this kata needs feedback https://www.codewars.com/kata/6809ffd5fcdb184cdb7592b6/java
It's been resolved. I've updated the type hint to str | None to correctly reflect that None is a valid input.
Thanks for the feedback!
It's quite similar, but works in a different way.
Anyway, thanks for pointing it out!
This kata needs feedback CrossMath
New traduction for revision Traduction
Issue resolved, thanks for the feedback!
Sorry, I forgot to change Python and Kotlin tests. Now it should be ok.
You're right. Null testing doesn't add meaningful value and tends to create more issues than benefits, so it has been removed.
Regarding the whitespace behavior. The case
"a "won’t occur in practice. Randomized tests won’t generate such inputs, and the only test case that includes spaces is"1 1 1".Also, from a human perspective, when you open a file and see a letter, your brain expects to find some kind of meaningful content. But if there are only spaces or invisible characters, it feels like there's nothing there. That intuition is part of the logic here.
First of all, thanks!
About the round subject, it's true that the way that it was written could lead to a misunderstanding of the task so I have changed it.
Also, I will keep the sugestion in mind for what will most likely become the second part of this kata, harder and definitely more interesting!
After further consideration, I realize it adds unnecessary complexity at this stage and have removed it, so I’ll leave that part for a second part of this concept.
You're right. Handling newlines in detail does add complexity, especially when it comes to defining keypress behavior and covering all edge cases in tests.
For now, I’ll keep this kata as a simpler introduction to the concept, where newlines are just normalized for consistency (\r and \r\n become \n). In the very possible second part, I’d like to explore more advanced behavior, like the previously mentioned upper case using both SHIFT keys, defining how line breaks count as keypresses, how they interact with segment limits, and adding proper random tests for all cases.
Thanks again for the thoughtful feedback!
You're right, it was too vague.
I updated the tip to clearly say that \r\n or \r should be replaced with \n.
First of all, thanks for the great suggestions to improve this kata!