코드스테이츠 Day39
public class Solution {
public ArrayList<String> dfs(tree node) {
//노드의 값이 저장된 배열을 리턴
ArrayList <String> result = new ArrayList<>();
//노드에 children이 있으면 children node로 이동
//children 없으면 값을 반환 ?
result.add(node.getValue());
if(node.getChildrenNode() != null){
for(int i=0; i < node.getChildrenNode().size(); i++){
ArrayList <String> curList = dfs(node.getChildrenNode().get(i));
result.addAll(curList);
}
}
return result;
}
<느낀 점>
정리된 블로그도 찾아보고, 인프런 무료 강의도 듣고 나니까 조금 더 실습 내용이 이해가 되었다. 그리고 마지막에 줌 세션으로 좀 더 이해할 수 있었다.
하지만 여전히 뚜렷하지는 않은 것 같다.
내일이면 섹션2 끝인데, 이게 맞는 건지...
AOP에 대해 정리한 블로그는 DI에 비해 괜찮게 잘 정리한 사이트를 찾기가 어려웠다. 위의 2개 블로그를 읽고 많은 도움을 얻었다. 👍