We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The editorial says to use recursive DFS, but when I solve it like that, most of the test cases time out. Shouldn't the editorial (which is locked until you complete the exercise) explain how to pass the exercise?
Roads and Libraries
You are viewing a single comment's thread. Return to all comments →
The editorial says to use recursive DFS, but when I solve it like that, most of the test cases time out. Shouldn't the editorial (which is locked until you complete the exercise) explain how to pass the exercise?