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:
Linus M. Henkel
2023-06-22 13:49:09 +02:00
committed by GitHub
parent 07e6812888
commit 5b0890bd83
6 changed files with 106 additions and 16 deletions

View File

@ -32,7 +32,7 @@ class Deque:
the number of nodes
"""
__slots__ = ["_front", "_back", "_len"]
__slots__ = ("_front", "_back", "_len")
@dataclass
class _Node:
@ -54,7 +54,7 @@ class Deque:
the current node of the iteration.
"""
__slots__ = ["_cur"]
__slots__ = "_cur"
def __init__(self, cur: Deque._Node | None) -> None:
self._cur = cur