3084. Count Substrings Starting and Ending with Given Character
You are given a string
s
and a characterc
. Return the total number of substrings ofs
that start and end withc
.
1 | class Solution { |
3084. Count Substrings Starting and Ending with Given Character
You are given a string
s
and a characterc
. Return the total number of substrings ofs
that start and end withc
.
1 | class Solution { |