作者归档:在线疯狂

RSS feed of 在线疯狂

[LeetCode]Shortest Distance to a Character

题目描述:

LeetCode 821. Shortest Distance to a Character

Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string.

Example 1:

Input: S = "loveleetcode", C = 'e'
Output ...

继续阅读