The data structure which is being used in DFS is stack. The process is similar to BFS ... Pop the top of the stack i.e. C and push all the neighbours.
確定! 回上一頁