Cumulative source-code acceptance
Specialist cumulative acceptance
Pass this private suite to enter Specialist at 210 skill.
What you need to build
Compose higher-order sequence operations, folds, vectors/views, maps, strings, first-class functions, and closures learned before Specialist.
Define collection-report with these inputs:
| Argument | JIK type | Meaning |
|---|---|---|
items | vector of integers | A bounded vector. |
Expected result
Return [sum reversed length] without mutating the supplied vector.
Python-like pseudocode
def collection_report(items):
total = sum(items)
reversed_copy = reverse(items)
return [total, reversed_copy, len(items)]
# Do not modify items. For [] return [0, [], 0].The private suite checks returned values in 3 cases. Private inputs and expected values are never sent to the browser. Covered language features are recommended implementation tools; the evaluator does not inspect source structure.