Tap here to switch tabs
Problem
Submissions

Problem: Count Substrings Without Repeating Character

med
30 min
Try to solve the Count Substrings Without Repeating Character problem.

Statement

Given a string s, return the total number of substrings of s that do not contain any repeating characters.

A substring is defined as a contiguous non empty sequence of characters within a string.

Constraints:

  • 1≤1 \leq s.length ≤105\leq 10^5

  • s consists of lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count Substrings Without Repeating Character

med
30 min
Try to solve the Count Substrings Without Repeating Character problem.

Statement

Given a string s, return the total number of substrings of s that do not contain any repeating characters.

A substring is defined as a contiguous non empty sequence of characters within a string.

Constraints:

  • 1≤1 \leq s.length ≤105\leq 10^5

  • s consists of lowercase English letters.