Skip to content

Commit

Permalink
day18
Browse files Browse the repository at this point in the history
  • Loading branch information
vslinko committed Dec 18, 2024
1 parent 203b67f commit c3d0397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/day18.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ unsafe fn find_fastest_path_score(grid: &[bool; GRID_SIZE]) -> usize {
($next_index:expr) => {
let next_index = $next_index;

if *grid.get_unchecked(next_index) && *closed_set.get_unchecked(next_index) {
if *closed_set.get_unchecked(next_index) && *grid.get_unchecked(next_index) {
let next_score = current.score + 1;

if next_score < *best_scores.get_unchecked(next_index) {
Expand Down

0 comments on commit c3d0397

Please sign in to comment.