Tap here to switch tabs
Problem
Submissions

Problem: Count Strings Rearrangeable to Contain a Substring

Try to solve the Number of Strings Which Can Be Rearranged to Contain Substring problem.

Statement

Given an integer n, return the total number of strings of length n consisting only of lowercase English letters that can be rearranged to contain "leet" as a substring.

Since the result may be very large, return it modulo 109+710^9 + 7.

Note: A substring is a contiguous non empty sequence of characters within a string.

Constraints:

  • 1≤1 \leq n ≤105\leq 10^5

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count Strings Rearrangeable to Contain a Substring

Try to solve the Number of Strings Which Can Be Rearranged to Contain Substring problem.

Statement

Given an integer n, return the total number of strings of length n consisting only of lowercase English letters that can be rearranged to contain "leet" as a substring.

Since the result may be very large, return it modulo 109+710^9 + 7.

Note: A substring is a contiguous non empty sequence of characters within a string.

Constraints:

  • 1≤1 \leq n ≤105\leq 10^5