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.
This comment is hidden because it contains spoiler information about the solution
Although overflow isn't a problem for Python, it appears to be a problem for the numpy package:
https://numpy.org/doc/stable/reference/generated/numpy.prod.html
"Arithmetic is modular when using integer types, and no error is raised on overflow. That means that, on a 32-bit platform:
> x = np.array([536870910, 536870910, 536870910, 536870910])
> np.prod(x)
16 # may vary"
This comment is hidden because it contains spoiler information about the solution
you got to think cleaner pal, all the solutions that i have seen in this forum are sooooo complicated compared to what i did. i'm not yet at the point where i can say if my solution is the best or if it's efficient, but sometimes i can do simple stuff for sure.
Thank You!
It worked when i multiplied it directly.
So, numpy uses C type variables something and Overflow occurred. [found on stack overflow]
Very Clever!
And did you try not using a library for multiplying two numbers?
This comment is hidden because it contains spoiler information about the solution