Jump game finally (?) but differently than solutions

This commit is contained in:
2023-10-25 16:51:35 -04:00
parent 54a7a2340c
commit 2f3ce704b2
2 changed files with 55 additions and 12 deletions
+16
View File
@@ -290,6 +290,22 @@ def test_collect_complete_jump_paths_from_board(
[1, 2],
1,
),
(
[6, 2, 6, 1, 7, 9, 3, 5, 3, 7, 2, 8, 9, 4, 7, 7, 2, 2, 8, 4, 6, 6, 1, 3],
4,
),
(
[3, 4, 3, 2, 5, 4, 3],
3,
),
(
[3, 2, 1],
1,
),
(
[1, 2, 3],
2,
),
],
)
def test_count_min_jumps_from_board(board: list[int], expected: int):