nix: bump flake inputs
This commit is contained in:
parent
fcb74b375f
commit
46864fc490
4 changed files with 56 additions and 13 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue