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

Method is_safe

src/backtracking/knight_tour.rs:82–88  ·  view source on GitHub ↗

Checks if the given position is safe to move to. # Arguments `x` - The x-coordinate of the position. `y` - The y-coordinate of the position. # Returns A boolean indicating whether the position is safe to move to.

(&self, x: isize, y: isize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

solve_tourMethod · 0.45
find_tourMethod · 0.45

Calls 2

size_xMethod · 0.80
size_yMethod · 0.80

Tested by

no test coverage detected