mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Dijkstra algorithm with binary grid (#8802)
* Create TestShiva * Delete TestShiva * Implementation of the Dijkstra-Algorithm in a binary grid * Update double_ended_queue.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update least_common_multiple.py * Update sol1.py * Update pyproject.toml * Update pyproject.toml * https://github.com/astral-sh/ruff-pre-commit v0.0.274 --------- Co-authored-by: ShivaDahal99 <130563462+ShivaDahal99@users.noreply.github.com> Co-authored-by: jlhuhn <134317018+jlhuhn@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -67,7 +67,7 @@ def benchmark():
|
||||
|
||||
|
||||
class TestLeastCommonMultiple(unittest.TestCase):
|
||||
test_inputs = [
|
||||
test_inputs = (
|
||||
(10, 20),
|
||||
(13, 15),
|
||||
(4, 31),
|
||||
@ -77,8 +77,8 @@ class TestLeastCommonMultiple(unittest.TestCase):
|
||||
(12, 25),
|
||||
(10, 25),
|
||||
(6, 9),
|
||||
]
|
||||
expected_results = [20, 195, 124, 210, 1462, 60, 300, 50, 18]
|
||||
)
|
||||
expected_results = (20, 195, 124, 210, 1462, 60, 300, 50, 18)
|
||||
|
||||
def test_lcm_function(self):
|
||||
for i, (first_num, second_num) in enumerate(self.test_inputs):
|
||||
|
Reference in New Issue
Block a user