Update linkedlist_stack.py

pull/50/head
Yudong Jin 2 years ago committed by GitHub
parent 60cb2ffc97
commit b1b5094436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,7 +52,7 @@ class LinkedListStack:
while temp:
stack.append(temp.val)
temp = temp.next
stack = stack[::-1]
stack.reverse()
return stack

Loading…
Cancel
Save