Jump game finally (?) but differently than solutions
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user