Nearest Neighbor solver, basic caching

Add a nearest neighbor solver (WriteAwareBruteSolver) and some basic
caching to the Java API adapter.

Fix a comment typo with an off-by-one error
This commit is contained in:
maddiebaka
2024-03-28 17:00:25 -04:00
parent 8386ace107
commit 152d9dc3ce
10 changed files with 225 additions and 20 deletions

View File

@@ -21,6 +21,10 @@ public abstract class SolutionTestBase {
assertTrue(padlock.isPasscodeCorrect());
}
/**
* Tests padlocks with numpad sizes of 1 to 7. This test runs for every class that extends this SolutionTestBase
* abstract class.
*/
@Test
void verify1to7() {
for (int i = 1; i <= 7; i++) {