Feb-05-2020, 09:43 PM
(Feb-05-2020, 09:35 PM)Gribouillis Wrote: The structure of the program should beIf they're performing a depth-first search, then recursion is a very natural solution, and a simple loop won't be enough without them managing a stack manually, which isn't necessarily worth doing...
That said, it sounds like there's no base-case. Usually for a recursive web crawler like this, you'd specify a max depth.
You should probably share your code if you expect more help.