Data Structures
This documentation provides a concise overview of the custom implementations for common data structures in Python.
Array
A simple dynamic array implementation using Python lists.
Methods
insert(index, item): Insert an item at the specified index.delete(index): Delete the item at the specified index.search(item): Return the index of the item or -1 if not found.update(index, item): Update the item at the specified index.get(index): Retrieve item at a specified index.display(): Print all elements in the array.
Stack
A stack (LIFO) data structure using Python list.
Methods
push(item): Add an item to the top of the stack.pop(): Remove and return the top item.peek(): Return the top item without removing it.is_empty(): Check if the stack is empty.__str__(): Return string representation of the stack.
Queue
A queue (FIFO) implementation using Python list.
Methods
enqueue(item): Add item to the end of the queue.dequeue(): Remove and return the front item.peek(): View the front item without removing it.is_empty(): Check if the queue is empty.__str__(): String representation of the queue.
LinkedList
Singly linked list implementation.
Methods
insertAtBeginning(item): Insert at the beginning.insertAfter(item, index): Insert after a specific index.insertAtEnd(item): Insert at the end.deleteItem(item): Delete the first occurrence of the item.search(item): Search for an item.get_length(): Return length of the list.access(index): Access item at a given index.update(index, item): Update item at a given index.display(): Display all items.
DoublyLinkedList
Doubly linked list with both forward and backward navigation.
Methods
insert_at_beginning(item): Insert node at the start.insert_at_end(item): Insert node at the end.insert_at(index, item): Insert at a specific position.delete_item(item): Delete node with matching data.search(item): Search for item index.get_length(): Get number of nodes.access(index): Access item by index.update(index, new_data): Update data at index.display(): Display all nodes bidirectionally.
BinarySearchTree
Binary Search Tree (BST) to maintain sorted data.
Methods
insert(item): Insert an item into the tree.search(item): Check if an item exists in the tree.inorder_traversal(): Return elements in sorted order.
Graph
Undirected graph using an adjacency list.
Methods
add_vertex(vertex): Add a new vertex.add_edge(v1, v2): Create edge between vertices.remove_edge(v1, v2): Remove edge between vertices.remove_vertex(vertex): Remove a vertex and its edges.display(): Print the adjacency list of the graph.
Metadata
Release files for aderonke-data-structures 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aderonke_data_structures-0.1.1.tar.gz | 4.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aderonke_data_structures-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / aderonke_data_structures-0.1.1.tar.gz
| Download URL | aderonke_data_structures-0.1.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e11f0ff3513e3e7816c45cb58649a0fdc1702fef7ed5cd72e431869c188b564
|
|
BLAKE2b-256 checksum How to use checksums |
c95f0d0c2b01c7ac54003dc1989884714cd60451343dfc2a30dd76712f412ad9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / aderonke_data_structures-0.1.1-py3-none-any.whl
| Download URL | aderonke_data_structures-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db2490a3f9c75cd8cdf2e89094429ee92b7ecdf11cbbd0b3d8bd761f94fd6131
|
|
BLAKE2b-256 checksum How to use checksums |
f9c6635780c487762b39800b2ee9cfb8cea9af4c46a0e0421339c78040edbece
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for aderonke-data-structures 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.