Skip to content

Commit e1a428c

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

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
@@ -21,7 +21,7 @@ private LetterCombinationsOfPhoneNumber() {
2121
* @return a list of possible letter combinations
2222
*/
2323
public static List<String> getCombinations(int[] numbers) {
24-
if (numbers == null || numbers.length == 0) {
24+
if (numbers == null) {
2525
return List.of("");
2626
}
2727
return generateCombinations(numbers, 0, new StringBuilder());

0 commit comments

Comments
 (0)