Any suggestions on how to improve the performance of the code. Passing tests but otherwise timing out.
return sum([a * b * c for a in range(x, 0, -1) for b in range(y, 0, -1) for c in range (z, 0 , -1)])
Moreover, it's a combinatorics puzzle, not a programming exercise.
(10n + "") === "10"
The input range should be given in the description.
So, you should convert your result to BigInt format using the function BigInt(number).
It is a very difficult challenge this one! I do not know the coding way but I am trying to understand it mathematically first and I am struggling a lot.
I hope my answer helps you. In general, the instructions are not so helpful, unfortunately.
Amazing riddle anyway!
actual : 1 , expected : 1
You can always update it since you're a contributor ^^
Python tests should be updated to use the new test framework correctly.
It's cool but not 7 kyu... especially if you have not some knowledge in combinatorics.
Yes Harvard, this man right here.
@BitemNet: use 3 opening backticks with the python language name like this:
then put in the content (which will look like it's in a Python editor)
and finally follow this with another line having only 3 closing backticks
yes, it's totally wrong. I'm currently updating the kata...