Skip to content

Commit 74eb2d4

Browse files
Updated Code Basedon Suggestions
Updated Code based on Suggestion
1 parent 5635c71 commit 74eb2d4

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

dsa-solutions/lc-solutions/0000-0099/0017-Letter-Combinations-of-a-Phone-Number.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ Given a string containing digits from 2-9 inclusive, return all possible letter
3939
- **Output:** `["a","b","c"]`
4040

4141
### Constraints:
42-
4342
- `0 ≤ digits.length ≤ 4`
4443
- `0 ≤ digits.length ≤ 4digits[𝑖]`
4544
- `digits[i] is a digit in the range ['2', '9'].`
@@ -70,7 +69,6 @@ Given a string containing digits from 2-9 inclusive, return all possible letter
7069
This approach ensures that all possible combinations are generated using backtracking, and the result is returned in the desired format.
7170

7271
### Solution Code
73-
7472
#### Python
7573

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

317-
This algorithm ensures that all possible combinations are generated by exploring all valid paths through backtracking.
315+
This algorithm ensures that all possible combinations are generated by exploring all valid paths through backtracking.

dsa-solutions/lc-solutions/0000-0099/0017-letter-combinations-of-a-phone-number.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: Letter Combinations of a Phone Number
2+
id: letter-combinations-of-a-phone-number
33
title: Letter Combinations of a Phone Number (LeetCode)
44
sidebar_label: 0017 Letter Combinations of a Phone Number
55
tags:

dsa-solutions/lc-solutions/0000-0099/0030 - SubString-with-Concatenation-of-all-words.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: Substring with Concatenation of All Words
2+
id: substring-with-concatenation-of-all-words
33
title: Substring with Concatenation of All Words
44
sidebar_label: 0030-Substring-with-Concatenation-of-All-Words
55
tags:
@@ -48,10 +48,9 @@ You are given a string `s` and an array of strings `words`. All the strings in `
4848
- The substring starting at 12 is "thefoobar". It is the concatenation of `["the","foo","bar"]`.
4949

5050
### Constraints
51-
52-
- 1 <= s.length <= 10^4
53-
- 1 <= words.length <= 5000
54-
- 1 <= words[i].length <= 30
51+
- $1 \leq \text{s.length} \leq 10^4$
52+
- $1 \leq \text{words.length} \leq 5000$
53+
- $1 \leq \text{words[i].length} \leq 30$
5554
- s and words[i] consist of lowercase English letters.
5655

5756
## Approach

0 commit comments

Comments
 (0)