Here I've put the most important data structures I could find with the most efficient implementations in Python I am aware of. Although this is a continuous process and many structures do not have any implementation reference available yet, if you happen to know a more efficient algorithm to implement one or more of this structures in Python (or any language) feel free to ping me :).
Data Structure | Python |
---|---|
Arrays | |
Linked Lists | Built-in List |
Skip lists | TODO |
Stacks | Built-in List |
Queues | Built-in List |
Hash Tables / Maps | Built-in Dict |
Sets | Build-in Set |
Trees | TODO |
Heaps |