Skip to content

Adding Solution of problem 0030-Substring-with-Concatenation-of-All-Words #969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Given a string containing digits from 2-9 inclusive, return all possible letter
- **Output:** `["a","b","c"]`

### Constraints:

- `0 ≤ digits.length ≤ 4`
- `0 ≤ digits.length ≤ 4digits[𝑖]`
- `digits[i] is a digit in the range ['2', '9'].`
Expand Down Expand Up @@ -70,7 +69,6 @@ Given a string containing digits from 2-9 inclusive, return all possible letter
This approach ensures that all possible combinations are generated using backtracking, and the result is returned in the desired format.

### Solution Code

#### Python

```python
Expand Down Expand Up @@ -314,4 +312,4 @@ Here's a step-by-step algorithm for generating all possible letter combinations
- Call the backtracking function with the initial index set to 0 and an empty string as the initial combination.
- Return the list of combinations.

This algorithm ensures that all possible combinations are generated by exploring all valid paths through backtracking.
This algorithm ensures that all possible combinations are generated by exploring all valid paths through backtracking.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Given a string containing digits from 2-9 inclusive, return all possible letter
- **Output:** `["a","b","c"]`

### Constraints:

- `0 ≤ digits.length ≤ 4`
- `0 ≤ digits.length ≤ 4digits[𝑖]`
- `digits[i] is a digit in the range ['2', '9'].`
Expand Down Expand Up @@ -70,7 +69,6 @@ Given a string containing digits from 2-9 inclusive, return all possible letter
This approach ensures that all possible combinations are generated using backtracking, and the result is returned in the desired format.

### Solution Code

#### Python

```python
Expand Down
Loading
Loading