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.
Not a kata issue!
Your code assumes all odd integers are primes, which is wrong
Your code returns
[]
for2
which is a prime itsdelfPlease read this:
Your code fails with tests like this one:
It returns
{'pos': [1, 3, 5], 'peaks': [3, 19, 17]}
instead. 3 at position 1 is not a plateau peak, 19 at position 3 is higher.Not a kata issue, use
Question
label next time.