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.
yeah ı got same issue. On intelij ı got correct pattern but for codewars my solution is wrong. I couldnt figure it out :/
I don't understand. It's obvious when the solution is copy/pasted. Who are they trying to fool?
This should not be considered best practices. There is no reason to build a string of bumps rather than simply count them.
This comment is hidden because it contains spoiler information about the solution
Is there a problem like this in the world of work?
I'm still a beginner
Approved.
Link in description is broken.
It seems to be fine. I think CorrectSolution is called before EvenTimesLast.
I changed the A to arr for camelCase in C#. I'm not seeing how the kata can be cheated -- it has all the fixed tests from the JavaScript version, plus a few more edge cases, and random tests as well. I'm ready to fix it, but I'm not sure how.
some remarks:
this last point can be resolved by first calculating the expected result, then let the user solve it
This comment is hidden because it contains spoiler information about the solution
EDIT: I figured it out -- my static data wasn't getting reset between test runs.
I'm testing on dotnet 6 locally, and I'm passing the 5x5 test online. When I print the 8x8 at home it looks right, but when I print it in the test online it generates a different pattern. I'm copy/pasting the code to create and print the spiral directly. Anyone have thoughts on what might be happening? I'm not sure what the etiquette is for posting code in the discussions. I'll post in a reply if it's ok.