Skip to main content

Practice · 2 of 4

Spec: checksum

CHALLENGE
Difficulty: beginner+25 XP

Implement to spec: validChecksum(String code) returns true exactly when the sum of the DIGIT VALUES is divisible by 10. Precondition guarantees digits only — no validation required.

Back to lesson: Practice: FRQ-style reps