Skip to content

Instantly share code, notes, and snippets.

트리_이진트리를 레벨단위 리스트로 변형하기.cpp
#include "header.h"
int main() {
//정렬 되어있는 배열을 넣는다
Tree* t = new Tree({ 0,1,2,3,4,5,6,7,8,9 });
t->bstToList2();
t->print();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment