public ArrayList < IntBinaryTree > getLeaves ( ) { LeafCollector leafCollector = new LeafCollector ( ) ; postOrderTraversal ( leafCollector ) ; return leafCollector . leaves ; }
Gets the leaves of this tree .