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.python Example 1:git Input: S = "loveleetcode", C = 'e' Output: [3
相關文章
相關標籤/搜索