Solution to Sub-task: Checking if an index is already visited

The solution to the Sub-task: "Checking if an index is already visited "of the project "Maze Solver".

We'll cover the following

Checking if an index is already visited

Sometimes while traversing we visit the same indices again and again. To prevent this, we maintain an array of all visited indices and refer back to it. To assist us, we can use the method checkVisited implemented.

Get hands-on with 1200+ tech skills courses.