Exemple #1
0
        /// <summary>
        /// Removes the specified head.
        /// </summary>
        /// <param name="Head">Specifical algoritm, never mind, its work)</param>
        /// <returns>true if Remove have success</returns>
        public bool Remove(ref Node <T> Head)
        {
            if (Parent == null)
            {
                Next.Parent = Prev.LastElSearcher();
                var temp = Next;
                Head        = Prev;
                Head.Parent = null;
                Head.Next   = temp;
                return(true);
            }

            return(Parent.ChangeParent(this));
        }