2019-09-03 00:00

coding Interview Prep - DFS && BFS

DFS
DFS는 간단힌 recursion과 stack을 이용한 iteration으로 구현할 수 있다.
Recursion Flow
function(g, s) //g는 graph, s는 시작 vertex
visited를 false(...
codingIntervewPrep
000

댓글