Title Given an array of integers, give the smallest n so that the sum of the first n elements is at least as large as the sum of the remaining elements.
Catalog Type SLCItem
Persistent ID https://codecheck.io/files/horstmann/codecheck-cpp-SumsAveragesProducts-7
Platform Name CodeCheck
Features Code Completion
Description Given an array of integers, give the smallest n so that the sum of the first n elements is at least as large as the sum of the remaining elements.
Keywords Arrays - Simple Exercises, Sums, Averages, Products
Author Cay Horstmann
Institution San José State University
Iframe URL https://codecheck.io/files/horstmann/codecheck-cpp-SumsAveragesProducts-7
Protocol SPLICE, LTI 1.1
Protocol URL
License https://creativecommons.org/licenses/by-nc-nd/4.0/
Programming Language C++
Natural Language en

Preview

SPLICE Output