Go to file
Samuel Facchinello 51fcc66345
refactor: redesign LetterCombinationsOfPhoneNumber (#5221)
* Refactor

* fix clang

* fix clang

* fix clang tests

* fix pattern

* add test case null

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

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>

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

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>

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

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>

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

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>

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

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>

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

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>

* Update src/test/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumberTest.java

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>

* rename MAP_OF_CHARS to KEYPAD

* fix clang

* remove main

* add tests

* feat: throw for wrong inputs

* change keypad to list

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

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>

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

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>

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

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>

* fix with number 1 (empty value), and add tests

* style: avoid concatenation while populating `KEYPAD`

* change to assertEquals

---------

Co-authored-by: Samuel Facchinello <samuel.facchinello@piksel.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-06-13 19:40:12 +02:00
.devcontainer chore: migrate to java 21 (#5163) 2024-05-19 21:57:07 +03:00
.github chore: migrate to java 21 (#5163) 2024-05-19 21:57:07 +03:00
src refactor: redesign LetterCombinationsOfPhoneNumber (#5221) 2024-06-13 19:40:12 +02:00
.clang-format chore: enforce InsertNewlineAtEOF in clang-format (#4343) 2023-09-01 04:10:46 +00:00
.gitignore Update .gitignore (#4344) 2023-09-01 09:37:29 +05:30
.gitpod.dockerfile Chore(deps): bump gitpod/workspace-java-21 from 2024-06-03-17-43-12 to 2024-06-10-10-39-01 (#5218) 2024-06-11 00:02:21 +02:00
.gitpod.yml Add SRTF Algorithm (#5011) 2024-01-08 23:48:11 +02:00
checkstyle.xml style: enable ParenPad in checkstyle (#5226) 2024-06-13 19:25:43 +02:00
CONTRIBUTING.md adding formatting steps in pull request template (#4606) 2023-10-08 21:06:13 +02:00
DIRECTORY.md style: enable TypeName (#5214) 2024-06-08 13:37:20 +02:00
LICENSE Update LICENSE 2021-02-25 16:15:52 -06:00
pmd-exclude.properties style: enable TypeName (#5214) 2024-06-08 13:37:20 +02:00
pom.xml Chore(deps): bump org.apache.maven.plugins:maven-pmd-plugin from 3.22.0 to 3.23.0 (#5220) 2024-06-12 06:15:51 +00:00
README-ko.md Fix typo in README-ko.md (#4215) 2023-06-14 15:37:14 +03:00
README.md docs: add codecov badge (#5099) 2024-04-08 18:08:35 +00:00
spotbugs-exclude.xml style: include SUI_CONTAINS_BEFORE_ADD (#5216) 2024-06-13 17:27:49 +00:00

The Algorithms - Java

Build codecov Discord chat Gitpod ready-to-code

You can run and edit the algorithms, or contribute to them using Gitpod.io (a free online development environment) with a single click.

Open in Gitpod

All algorithms are implemented in Java (for educational purposes)

These implementations are intended for learning purposes. As such, they may be less efficient than the Java standard library.

Contribution Guidelines

Please read our Contribution Guidelines before you contribute to this project.

Algorithms

Our directory has the full list of applications.