摘要: 类似于 two points 的解法,非常好的指导思想。 和 821 Shortest Distance to a Character的解题思路是一样的。 题目可以转换成 数组中某个点 到特定字母的最小距离 比如 loveleetcode 求到字母e的最小距离 难点: 字母有可能出现在当前index 阅读全文
posted @ 2019-10-03 02:14 KeepAC 阅读(142) 评论(0) 推荐(0) 编辑