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.
Good job! ;)
Actually running your solution to test its speed it broke on one of the basic tests. Took me a little while to reproduce and understand but if you want to fully complete the kata you might want to check those variation of a basic maze:
In these cases your program seems to think that the maze is unsolvable and returns
[]
.I haven't solved it yet, but maybe because they're not consecutive?
Thanks !
The description says clearly: A natural number is called k-prime if it has exactly k prime factors, counted with multiplicity. You need to know what is a prime number.
k = 2 -> 4, 6, 9, 10, 14, 15, 21, 22...
all these numbers have 2 prime factors (4=22, 6=23, 9=33, 10= 25...); they are 2-primes.k = 3 -> 8, 12, 18, 20, 27, 28, 30...
all these numbers have 3 prime factors (8=222, 12=223, ...); they are 3-primes.When you ask for help, post a question, not an issue.
Print the input and you will see the given test.