(Oct-29-2021, 07:08 PM)Gribouillis Wrote: For me the correct answer for [-1, -2, -3, -4]
is 0, the sum of the empty list.
Could you elaborate please?
Do you see this as a mathematical concept or a practical consideration ?
Because the random generator (-100,100) could very well produce an all negative array.
thx,
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.