Number of Substrings Containing All Three Characters at DE Shaw
Medium73.5% acceptance
This problem has 75.0% frequency at DE Shaw.
Problem Description
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 _a_ , _b_ and _c_.
Read full problem and hintsTopics
Also asked at 6 companies
More DE Shaw Questions
Letter Combinations of a Phone NumberMediumRelative Sort ArrayEasyMinimum Deletions to Make String K-SpecialMediumQuery Kth Smallest Trimmed NumberMediumEqual Row and Column PairsMedium
View all DE Shaw questions