Sum Digits Until One

Problem Overview

  • Reduce each number string by summing its digits repeatedly to a single digit, then return the mode of the results.
  • Input: list of strings representing numbers; Output: an integer mode of the single-digit values.
  • Real-world context: digit normalization (digital root) and frequency analysis on datasets.
  • From Capital_one interviews; a coding interview problem often used as an interview question.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: