트리 베이스

레이어드 구조 가지다 데이터 표현하다 ~을 위한 구조 마디(마디): 데이터 표현하다 트렁크(가장자리): 마디 계층 구조 표현하다 ~을 위한 사용 이것 나무 구조 가지다 할 때 코드 화신 #include <iostream> #include <vector> #include <stack> #include <list> #include <queue> using namespace std; using NodeRef = shared_ptr<struct Node>; struct Node { Node() {} Node(const string& data) : data(data) … Read more