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 comment is hidden because it contains spoiler information about the solution
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/197.
Please join the discussion to help us identify duplicate kata and retire them.
Test case only goes up to
n = 8000000
, evenO(n)
solution passes. There are no actual performance constraints, which the description is implying to have.This is a duplicate of https://www.codewars.com/kata/55143152820d22cdf00001bb (digit to count changed from
9
to2
).This comment is hidden because it contains spoiler information about the solution
Reference solution is incorrect. (It can be easily verified by comparing the results of small test cases with a first-order solution.)
Are all of the tests known to work? I'm passing all the corner cases, all the properties tests, but failing about half of the random tests.
There's only 2 solves on this kata so I'm wondering if it's working correctly.
This is not a kata.
Duplicate of https://www.codewars.com/kata/simple-fun-number-119-sub-sets-parity