Ejemplo n.º 1
0
        public Queue <float> prefixQueue()
        {
            Queue <float> prefixVrsta = new Queue <float>();

            if (koren != null)
            {
                koren.prefixQueue(prefixVrsta);
            }

            return(prefixVrsta);
        }
Ejemplo n.º 2
0
 public void prefixQueue(Queue <float> vrsta)
 {
     vrsta.Enqueue(podatek);
     if (levo != null)
     {
         levo.prefixQueue(vrsta);
     }
     if (desno != null)
     {
         desno.prefixQueue(vrsta);
     }
 }