Update linkedlist_stack.py
This commit is contained in:
parent
60cb2ffc97
commit
b1b5094436
|
|
@ -52,7 +52,7 @@ class LinkedListStack:
|
|||
while temp:
|
||||
stack.append(temp.val)
|
||||
temp = temp.next
|
||||
stack = stack[::-1]
|
||||
stack.reverse()
|
||||
return stack
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue