3884. First Matching Character From Both Ends
You are given a string
sof lengthnconsisting of lowercase English letters.Return the smallest index
isuch thats[i] == s[n - i - 1].If no such index exists, return -1.
1 | class Solution { |
3884. First Matching Character From Both Ends
You are given a string
sof lengthnconsisting of lowercase English letters.Return the smallest index
isuch thats[i] == s[n - i - 1].If no such index exists, return -1.
1 | class Solution { |