Maximum Number of Occurrences of a Substring at Salesforce

Medium54.2% acceptance

This problem has 75.0% frequency at Salesforce.

Problem Description

Given a string `s`, return the maximum number of occurrences of **any** substring under the following rules: * The number of unique characters in the substring must be less than or equal to `maxLetters`. * The substring size must be between `minSize` and `maxSize` inclusive.

Read full problem and hints

Topics

Also asked at 6 companies


More Salesforce Questions

View all Salesforce questions