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:
@ -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
|
||||
|
Reference in New Issue
Block a user