Created
April 26, 2020 08:42
-
-
Save wiccy46/43323f7cc2ecef8f1e61d1b3353b4808 to your computer and use it in GitHub Desktop.
[deque] Faster array append in python #python #datastructure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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