技术栈

leetcode 3084

Espresso Macchiato
1 年前
排列组合·leetcode medium·leetcode题解·leetcode 3084·leetcode周赛389
Leetcode 3084. Count Substrings Starting and Ending with Given Character这一题其实挺简单的,只要看一下目标的character在string当中出现了几次即可,然后就是一个 C n 2 C_n^2 Cn2的头尾选择问题即可。