Create NodeDetails for newNode and add it to the queue
newNode . data = arr [ i ++ ] ; newNode . min = temp . min ; newNode . max = temp . data ; q . Enqueue ( newNode ) ; } newNode = new NodeDetails ( ) ;