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 hints

Topics

Also asked at 6 companies


More DE Shaw Questions

View all DE Shaw questions