> For the complete documentation index, see [llms.txt](https://blog.yushunchen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.yushunchen.com/algo/string/count-unique-characters-of-all-substrings-of-a-given-string.md).

# Count Unique Characters of All Substrings of a Given String

{% embed url="<https://leetcode.com/problems/count-unique-characters-of-all-substrings-of-a-given-string/>" %}

## Solution 1 (Java)

```
```
