이성환
가입: 2014년 9월 9일 올린 글: 34
|
올려짐: 2014년10월13일 18:24 주제: 과제 3-3 테스트케이스 |
|
|
간단한 테스트 케이스 올려봅니다.
코드: | dft( makeTree( 1, makeTree (2, leaf(4), makeLtree(5, leaf(6))), makeTree( 3, makeRtree( 7, makeRtree( 9, leaf(10))), leaf(8))))
dft(makeRtree(3, makeRtree(1, makeRtree(2, makeTree(6, leaf(4), leaf(5))))))
bft( makeTree( 1, makeTree (2, leaf(4), makeLtree(5, leaf(6))), makeTree( 3, makeRtree( 7, makeRtree( 9, leaf(10))), leaf(8))))
bft(makeRtree(3, makeRtree(1, makeRtree(2, makeTree(6, leaf(4), leaf(5)))))) |
코드: | 12456379108
312645
12345786910
312645 |
|
|