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

Method is_valid

src/backtracking/rat_in_maze.rs:170–177  ·  view source on GitHub ↗

Checks if a given position is valid in the maze. # Arguments `x` - The x-coordinate of the position. `y` - The y-coordinate of the position. `solution` - The current solution matrix. # Returns A boolean indicating whether the position is valid.

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

solveMethod · 0.45

Calls 2

widthMethod · 0.80
heightMethod · 0.45

Tested by

no test coverage detected