Alphabet Count Decoder

Asked at NVIDIA · Coding Questions · Difficulty: Easy · Last asked Apr 26, 2026

A compact code writes a sequence of lowercase letters as digits. Letters `a` to `i` are the single digits `1` to `9`, and letters `j` to `z` are the two-digit numbers `10` to `26`, each followed by `#`. A letter may be followed by a repeat count in parentheses. Decode the string and report how many times each letter occurs.

Loading the problem…