a utility function print all path from root to leaf working of this function is similar to function of " Print _ vertical _ order " : Print paths of binary tree in vertical order www . geeksforgeeks . org / print - binary - tree - vertical - order - set - 2 / https :
void printAllPathsUtil ( Node * root , vector < PATH > & AllPath , int HD , int order ) {