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