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.
Hey @PDrich101 - I spent some time trying your solution; there is some weird behaviour and I think it seems to be with your use of NumPy; I noticed for some tests your code was producing complex numbers.
I reset the trainer and tried to repaste your old solution but you have since updated so I can't continue testing.
My advice therefore would be: replace all your calculations with inbuilt Python types rather than Numpy ones. Note by the way that there is a
prod
function inmath
- you canfrom math import prod
you don't need the Numpy one.If testing throws an error, you did not pass every test.
Not a kata issue. Closing.
That seems a problem with your code returning None for some input.
Eh .. it's a cheat, actually.