Function to print the level order of given binary tree . Direction of printing level order traversal of binary tree changes after every two levels
static void modifiedLevelOrder ( node root ) { if ( root == null ) return ; int dir = LEFT ; node temp ; Queue < node > Q = new Queue < node > ( ) ; Stack < node > S = new Stack < node > ( ) ; S . Push ( root ) ;