Write a function called smallest_sum_sequence() that accepts an array
of signed integers and the number of items in the array as arguments,
and returns the smallest sum of a sequence of numbers in the array. A
sequence is defined as a single item or multiple items that are in
adjacent memory locations.
这显然是家庭作业,我不需要任何人为我编写代码只是解释他们实际上正在寻找的东西,因为我认为它的措辞很奇怪.
我认为他们想要的是:
Given an array and the total items in the array. Have the user input a sequence of values for the array ( array[7] -> array[9] ) return smallest sum
然后确定最小的总和?那应该是最小的值还是最小的项目组合?第一个听起来太容易,第二个听起来没有意义,即使你有负面效果.
我在寻找任何启示.