Given a binary tree , print out all of its root - to - leaf paths , one per line . Uses a recursive helper to do the work .
void printPaths ( node * node ) { int path [ 1000 ] ; printPathsRecur ( node , path , 0 ) ; }