• + 2 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?