Skip to content

Commit fda621b

Browse files
samuelfacvil02
andauthored
Update src/main/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumber.java
Co-authored-by: Piotr Idzik <[email protected]>
1 parent cc069a8 commit fda621b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumber.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private static List<String> generateCombinations(int[] numbers, int index, Strin
4747
// Iterate over each letter and recurse to generate further combinations
4848
for (char letter : letters.toCharArray()) {
4949
current.append(letter); // Append the current letter
50-
combinations.addAll(generateCombinations(numbers, index + 1, current)); // Recursive call
50+
combinations.addAll(generateCombinations(numbers, index + 1, current));
5151
current.deleteCharAt(current.length() - 1); // Backtrack by removing the last appended letter
5252
}
5353

0 commit comments

Comments
 (0)