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.
Based solution
Best solution with the nicest reference. Love it. <3
This is actually clever. I didn't even think to use recursion.
<3
Nice! , but what is the complexity of this code ?
and is it the best solution for this problem ?
because solving this complex problem takes a lot of time.
It does work as intended, as each user is able to vote, without being forced to or hampered. It's a user's right to vote any way they like.
You could also write a new translation to the Kata. After making it, drop a suggestion in the comments, saying that you have an update for the Javascript (or other language) version. If it looks good, someone with the approval ability can modify the kata with your fixes.
Not only does that do the community a favor, but it also get's you some bonus honor points!
Codewars' content is (mostly) maintained by volunteers; code won't fix itself, someone has to devote time to it. And there is such a report feature : head to the Discourse section and look at the many
issues
about the lack of coverageAlthough it makes sense that a kata created on old versoins of the platform would have gone through a different process before becoming public than how it would be right now, it still doesn't cover for the fact that solutions like this should not stay on the platform as correct answers.
Given the number of comments pointing to the incorrectness of the solution, it is expected that there would be some moderators to take action regarding such anomalies on the platform. Or otherwise having a report feature of some sort for taking care of these kind of legacy issues could also be a good idea.
in the early days of Codewars, rules were much more lax regarding tests coverage; this kata is 9 years old. also, users will upvote absolutely anything, and there is a bandwagoning effect when a solution already has a couple of upvotes because it's displayed on top and will mechanically receive more upvotes (it is mostly begginers who vote on solutions).
these are not valid reasons to dislike Codewars though. rules for new kata are much stricter, and the "bad" upvotes are a social problem, not a technical one
I think it would be a better idea to keep these kind of problems in beta phase before they have proper test functions written for them.
codewars just lost all its credit for me with this upvoted "clever" answer.
yeah, that's a good point.
I've started to comment my code and even leave in console.logs.
The reason I left them out was to get the code as succinct as possible, but that's just for pride.
This solution is not correct!
If you change all the 1's for 2's and all the 9's for 8' this solution will say that the suduko is correct.
but then the check of the 3x3 subgrids will not total 45 they they have to
Loading more items...