Massahud

u/Massahud@programming.dev
0 posts · 11 comments

Recent posts

No posts.

Recent comments

Maybe you are adding the same point multiple times to to_visit. I don't know ruby but couldn't see a check for visited points before adding, and to_visit appears to be an array instead of set, which can store the same point multiple times.