Function to print the level order of given binary tree . Direction of printing level order traversal of binary tree changes after every two levels
void modifiedLevelOrder ( struct node * root ) { if ( ! root ) return ; int dir = LEFT ; struct node * temp ; queue < struct node * > Q ; stack < struct node * > S ; S . push ( root ) ;