Skip to main content

Practice · 1 of 4

Spec: total characters

CHALLENGE
Difficulty: beginner+25 XP

Implement exactly to spec: totalChars(int[] lengths, int wordCount) returns the sum of the first wordCount entries of lengths. Rely on the precondition (no validation needed).

Back to lesson: Practice: FRQ-style reps