归档 2018年4月

[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 ...

继续阅读

每日归档

上个月

下个月

归档