Last active
June 30, 2021 11:04
-
-
Save jianshen92/7d5a7417e91e7f469b7597df528abe2f to your computer and use it in GitHub Desktop.
Prepending with List vs Deque
Small overhead of converting from deque to list but still much faster
append_reverse
is almost identical to deque_appendleft
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
referenced from https://stackoverflow.com/questions/8537916/whats-the-idiomatic-syntax-for-prepending-to-a-short-python-list