Tap here to switch tabs
Problem
Submissions

Problem: Number of Distinct Substrings in a String

Try to solve the Number of Distinct Substrings in a String problem.

Statement

Given a string s, return the number of distinct substrings in s.

A substring is a contiguous sequence of characters within a string.

Constraints:

  • 1≤1 \le s.length ≤500\le 500

  • s consists of lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Number of Distinct Substrings in a String

Try to solve the Number of Distinct Substrings in a String problem.

Statement

Given a string s, return the number of distinct substrings in s.

A substring is a contiguous sequence of characters within a string.

Constraints:

  • 1≤1 \le s.length ≤500\le 500

  • s consists of lowercase English letters.