mirror of
				https://github.com/krahets/hello-algo.git
				synced 2025-11-04 06:07:20 +08:00 
			
		
		
		
	Update linkedlist_stack.py
This commit is contained in:
		@ -52,7 +52,7 @@ class LinkedListStack:
 | 
			
		||||
        while temp:
 | 
			
		||||
            stack.append(temp.val)
 | 
			
		||||
            temp = temp.next
 | 
			
		||||
        stack = stack[::-1]
 | 
			
		||||
        stack.reverse()
 | 
			
		||||
        return stack
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user