Simplified Push Method
This commit is contained in:
		@@ -23,12 +23,7 @@ namespace C_.Datastructures
 | 
			
		||||
        public void Push(T value){
 | 
			
		||||
            //Add an Item to the top of the stack
 | 
			
		||||
            Count++;
 | 
			
		||||
            if (Count > 0)
 | 
			
		||||
            {    
 | 
			
		||||
                Head = StackNode<T>.Create(value, Head);
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            Head = StackNode<T>.Create(value, default);
 | 
			
		||||
            Head = StackNode<T>.Create(value, Head);
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user