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.
credit to @marksiemers for
i/9/3*3 + i%9/3 == x
This comment is hidden because it contains spoiler information about the solution
@herathe - I dislike the monkeypatching of
Array
=\This comment is hidden because it contains spoiler information about the solution
Likely code runner server performance issues, check: https://codewars.statuspage.io/
Likely code runner server performance issues, check: https://codewars.statuspage.io/
Description isn't clear. The given link had a better explanation of expected output. More examples would be useful.
Maybe the problem was changed, but this wasn't a problem for me.
I guess the docs don't explicitly mention that
all?
short-circuits too. The same is true ofnone?
andany?
, by the way.Temporary objects will be created in memory anyways. I prefer to avoid line wrapping and indent-nesting when possible.
Also updated
valid9
criteron because there was no guarantee of only positive numbers.You're right. His solution doesn't correctly validate all sudokus - it just passes all the test cases. Find any valid sudoku and swap the 6th and 7th rows to create an example invalid solution that this solution incorrectly passes.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It is unclear when and where code is called/run due to the (presumably intentional) obfuscation.
Finding the solution to this kata felt unrewarding to me.
The provided hints were mostly unuseful, and this kata ended up just being a ton of trial and error attempts to get a direct reference to the
ADMIN
object.I've a couple test cases that demonstrates how this problem is insufficiently defined and needs more test cases:
For example, @hencethus and @evilscott/@Dima83 have differing solutions that pass the tests. However:
@hencethus's solution maintains tallies across iterations, disqualifying losers along the way.
@evilscott's and @Dima83's solution declares the candidate with the most first-votes to be the winner rather than the one with "more than half the total votes"
Loading more items...