nix: bump flake inputs

This commit is contained in:
Bruno BELANYI 2022-12-01 10:01:42 +01:00
parent fcb74b375f
commit 46864fc490
4 changed files with 56 additions and 13 deletions

View file

@ -65,7 +65,7 @@ def build_graph(grid: RawGrid) -> Graph:
def solve(G: Graph, start: str) -> int:
@lru_cache(2 ** 20)
@lru_cache(2**20)
def reachable_keys(src: str, found: FrozenSet[str]) -> List[Tuple[str, int]]:
queue = []
distance: DefaultDict[str, Union[float, int]] = defaultdict(lambda: inf)
@ -97,7 +97,7 @@ def solve(G: Graph, start: str) -> int:
return reachable
@lru_cache(2 ** 20)
@lru_cache(2**20)
def min_steps(
src: str, keys_to_find: int, found: FrozenSet[str] = frozenset()
) -> int:

View file

@ -65,7 +65,7 @@ def build_graph(grid: RawGrid) -> Graph:
def solve(G: Graph, start: str) -> int:
@lru_cache(2 ** 20)
@lru_cache(2**20)
def reachable_keys(src: str, found: FrozenSet[str]) -> GraphInfo:
queue = []
distance: DefaultDict[str, Union[float, int]] = defaultdict(lambda: inf)
@ -97,7 +97,7 @@ def solve(G: Graph, start: str) -> int:
return reachable
@lru_cache(2 ** 20)
@lru_cache(2**20)
def min_steps(
sources: str, keys_to_find: int, found: FrozenSet[str] = frozenset()
) -> Union[float, int]: