Skip to content

Instantly share code, notes, and snippets.

@wiccy46
Created April 26, 2020 08:42
Show Gist options
  • Save wiccy46/43323f7cc2ecef8f1e61d1b3353b4808 to your computer and use it in GitHub Desktop.
Save wiccy46/43323f7cc2ecef8f1e61d1b3353b4808 to your computer and use it in GitHub Desktop.
[deque] Faster array append in python #python #datastructure
from collections import deque
d = deque()
for i in range(10000):
d.append(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment