Search⌘ K
AI Features

Total Appeal of a String

Total Appeal of a String asks you to sum the number of distinct characters across every contiguous substring of a given string and return that total.

Statement

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