Search⌘ K
AI Features

Number of Wonderful Substrings

Number of Wonderful Substrings asks you to count every non-empty contiguous substring in a lowercase string where at most one letter appears an odd number of times, including duplicate occurrences.

Statement

A wonderful string is defined as a string in which at most one letter occurs ...