[LeetCode] 1358. Number of Substrings Containing All Three Characters 包含所有三种字符的子字符串数目

Given a string s consisting only of characters a, b and c. Return the number of substrings containing at least one occurrence of all these characters 
posted @ 2023-10-30 05:48  Grandyang  阅读(63)  评论(0编辑  收藏  举报
Fork me on GitHub