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).
Press Submit to check your solution.
Back to lesson: Practice: FRQ-style reps