MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / solve

Method solve

src/backtracking/rat_in_maze.rs:137–157  ·  view source on GitHub ↗

Recursively solves the Rat in Maze problem using backtracking. # Arguments `x` - The current x-coordinate. `y` - The current y-coordinate. `solution` - The current solution matrix. # Returns A boolean indicating whether a solution was found.

(&self, x: isize, y: isize, solution: &mut [Vec<bool>])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

find_pathMethod · 0.45

Calls 3

widthMethod · 0.80
heightMethod · 0.45
is_validMethod · 0.45

Tested by

no test coverage detected