We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e2a98 commit 93252bfCopy full SHA for 93252bf
src/main/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumber.java
@@ -8,18 +8,17 @@
8
public final class LetterCombinationsOfPhoneNumber {
9
10
// Mapping of numbers to corresponding letters on a phone keypad
11
- private static final Map<Integer, String> numberToCharMap = Map.of(
12
- 0, "",
13
- 1, "",
14
- 2, "abc",
15
- 3, "def",
16
- 4, "ghi",
17
- 5, "jkl",
18
- 6, "mno",
19
- 7, "pqrs",
20
- 8, "tuv",
21
- 9, "wxyz"
22
- );
+ private static final Map<Integer, String> numberToCharMap = Map.of( //
+ 0, "", //
+ 1, "", //
+ 2, "abc", //
+ 3, "def", //
+ 4, "ghi", //
+ 5, "jkl", //
+ 6, "mno", //
+ 7, "pqrs", //
+ 8, "tuv", //
+ 9, "wxyz");
23
24
private LetterCombinationsOfPhoneNumber() {
25
// Prevent instantiation
0 commit comments