# 力扣821. 字符的最短距离


## 力扣821. Shortest Distance to a Character（字符的最短距离）

计算每个字符到目标字符的最短距离.

示例 1：

![](../posts/01_学习/87_LeetCode/0821_字符的最短距离/img/0821_字符的最短距离-1-description.png)

```
输入：...
输出：...
解释：...
```

提示：
- ...

