hello guys,
i was recently solving a bfs problem here each node is a different 
arrangement of elements of an array. but i was unable to come up with a 
suitable data structure to keep track of the visited nodes in the expanded 
tree. generally the nodes are different strings so we can just use a map to 
mark a node as visited but what DS should i use in the above case?

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/CMbVSCp_d6kJ.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to