Click here to Skip to main content
16,003,555 members

Comments by Member 15561967 (Top 5 by date)

Member 15561967 15-Mar-22 5:30am View    
I don't know how to store vertices that I need using recursive DFS. That's my main problem. I can "cheat" on a piece of paper.
Member 15561967 10-Mar-22 16:25pm View    
Thank you very much! I read it all and everything is clear. Unfortunately I will have to code it tommorrow, but this is what I was looking for.
Member 15561967 10-Mar-22 13:22pm View    
Brute force will be very slow for a bigger array. That's what I'm trying to avoid. I've updated the question.
Member 15561967 10-Mar-22 13:20pm View    
Brute force will be very slow for a bigger array. That's what I'm trying to avoid.
Member 15561967 10-Mar-22 12:00pm View    
What other detail do you need? I'd be happy to add it to the original post.