It still throws an error on the kata running python 3.11, and in my IDE (also running python 3.11). I checked in idle, and it throws the division by 0 error there as well, so I wonder what's different about your setup that it doesn't throw this error.
can someone tell me what method this is? This is my first times seeing it
codewars ppl literally using just array and some maths to make everything O(1) efficient
I love this! Thanks for teaching me a new function. :)
I've never seen a solution like this before, and I learned from it as a direct result. Thank you OP. :)
they really be pulling out any library god has to offer
cleannnnn
It still throws an error on the kata running python 3.11, and in my IDE (also running python 3.11). I checked in idle, and it throws the division by 0 error there as well, so I wonder what's different about your setup that it doesn't throw this error.
looks like something has changed. the OP code runs fine in idle. add works fine. it throws divide by 0 error only on divide.
good idea!
beautiful
great idea! next time will remmember that solution:)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
And why is that?
please use a spoiler flag when discussing code / solutions. I added the flag
Loading more items...