Having problem to understand the concept of visited arrays without using hashmaps .
Please Can you share some codes that will help me in understanding the concept.
Not able to get the concept of the visited arrays
hello @G_rahil
if nodes are numbered like 0,1,2,3,… then instead of map we can use array/vector to track the visited the nodes.