Search⌘ K
AI Features

Total Appeal of a String

Total Appeal of a String asks you to sum the appeal of every contiguous substring, where each substring’s appeal is the number of distinct characters it contains.

Statement

Given a string s, return its total appeal, which is calculated by ...