I didnt get the problem.
Please give a hint conc. "multiply"
Should [1, 5], [2], [-1, -3]
be treated as
[1, 5],
[2, 0], [-1, -3] ?
"smallest" gives the imagination that there is some choice possible. This would be in contrast to simple vector multiplication, right ?
I do notunderstand the instructions Moreover: Is this
[1, 5], [2], [-1, -3]
to be underrstood as:
[1, 5], [2, 0 ], [-1, -3]
?
multiply the contents of each nested array
appears to me like:
a1*b1 + a2 * b2 + a3 *b3...
but may as well be:
a1b1c1 + a2b2c2 ....
But what menas: the "smallest" total ?
in vector multiplication there is always a unique solution
Changed the description to explicitly say that all arrays will be non-empty.
Given an array of arrays none of which will be empty, multiply the contents of each nested array and return the smallest total.
Now it looks to me like the outer array can be empty.
I've reworded the description, is it good enough now?
It's not clear from the description if inner arrays can be empty.
The given array will never be empty !
^ singular "array" ^
resolved
Added to description that arrays won't be empty
Approved
Bumping translation.
Help us help you. Include the error message.
You may have been modifying the input array. That would change the value the reference solution works on, which it no longer does.
Try again.
Also, don't modify your input.
I guess there is something wrong with the test. For JavaScript I do not use method reduce or Math in my solution, but there occure error including those metods...
Python translation. Please, review and approve.
Loading collection data...
I didnt get the problem.
Please give a hint conc. "multiply"
Should
[1, 5],
[2],
[-1, -3]
be treated as
[2, 0],
[-1, -3]
?
"smallest" gives the imagination that there is some choice possible.
This would be in contrast to simple vector multiplication, right ?
I do notunderstand the instructions
Moreover:
Is this
[1, 5],
[2],
[-1, -3]
to be underrstood as:
[1, 5],
[2, 0 ],
[-1, -3]
?
multiply the contents of each nested array
appears to me like:
a1*b1 + a2 * b2 + a3 *b3...
but may as well be:
a1b1c1 + a2b2c2
....
But what menas:
the "smallest" total ?
in vector multiplication there is always a unique solution
Changed the description to explicitly say that all arrays will be non-empty.
Now it looks to me like the outer array can be empty.
I've reworded the description, is it good enough now?
It's not clear from the description if inner arrays can be empty.
^ singular "array" ^
resolved
Added to description that arrays won't be empty
Approved
Bumping translation.
Help us help you. Include the error message.
You may have been modifying the input array. That would change the value the reference solution works on, which it no longer does.
Try again.
Also, don't modify your input.
I guess there is something wrong with the test. For JavaScript I do not use method reduce or Math in my solution, but there occure error including those metods...
Python translation. Please, review and approve.
Loading more items...