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.
Using a directory is more simple ;-)
I think so.
PS: Have you seen my solution?
I'm not sure who marked you down, so I'll mark you back up, agree, and expand.
0
and1
should probably be excluded from the domain of the function.factorize(0) == [0]
andfactorize(1) == [1]
are mathematically untrue: both have infinite factors. The latter might make sense if the function was to return only a single instance of a factor (since the natural factors of 1 are an infinite sequence of 1s). Except, in that case, the descrition should have stuck with "smallest" and specified ℕ. Instead it mentions prime numbers, so1
is out. Forfactorize(0)
, if it must be included, the output should be either ℕ or ℙ (where ℙ represents the set of prime numbers) depending on the description; or a successful run should just raise a memory error...Should be retired?
No random tests (above all other issues mentioned below).
factorize(0)
does not make any sense. Why're you even putting such a test case up in the first place?Looks like a duplicate:
http://www.codewars.com/kata/prime-factors
http://www.codewars.com/kata/prime-factorization
Sorry, I managed to miss a mistake in my solution even after reviewing it several times.
You may be right, but the tests run fine with my code (and others).
Prehaps your algorithm is taking too long to run?
I am new to writing Katas - are my tests visible to you?
If so, can you point out the one that seems problematic?
Process was terminated. It took longer than 6000ms to complete
It looks like the problem is in the tests.
This comment is hidden because it contains spoiler information about the solution
This... This works. How?
Nice Kata for fundamentals
Unfortunatly, I am all out of prizes:(
Title changed....
You might want to change the title, unless you plan to give out a prize! :)
Loading more items...