C # program to print Zig - Zag traversal in groups of size 2.
using System ; using System . Collections . Generic ; public class GFG { static readonly int LEFT = 0 ; static readonly int RIGHT = 1 ; static int ChangeDirection ( int Dir ) { Dir = 1 - Dir ; return Dir ; }