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.
Chuck Norris wasn't developed code, code itself was developed for Chuck Norris...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Python fixed in this fork
(16 --> 80 out of 384 solutions invalidated)
Ruby fixed in this fork
(5 --> 14 out of 63 solutions invalidated)
JavaScript edge cases added in this fork + edit due to
assert.deepEqual
failing to compare+0
&-0
(0 --> 105 out of 493 solutions invalidated)
Haskell edge cases added directly in the edit window
(0 --> 5 out of 39 solutions invalidated)
This comment is hidden because it contains spoiler information about the solution
@Just4FunCoder check the issue above, the reference solution doesn't handle tests like that one.
Testing for [0, 79] and 0:
[0, 79] should equal None,
but 0 * 79 == 0...
No issue with kata.
Description says: "Return [...]
None
if: [...] more than one number meet the conditions".For your example, matching numbers can be 4, 8, 16, etc.
python: error on Fixed Tests 4:
currect result: 4
I guess I misunderstood what @dfhwze was doing in the tests. It should be fixed now, I edited it directly into the kata.
I advise you to use completely random tests, otherwise you can solve this kata, for example, in the same way:
but you had yourself also created a function...
No need for making it a function 💀
The symbol is called an asterisk btw.
Loading more items...