Skip to main content

A Python package to manage basic data structures like arrays, stacks, queues, and lists.

Project description

📦 DataStructureManager

A Python package to manage and interact with core data structures like Arrays, Linked Lists Circular List, Double Linked List, Stacks, Queues, Graph and Tree. This project is part of a class assignment to demonstrate understanding of data structure concepts and their implementation in Python.

🚀 Features

✅ Array implementation with common operations ✅ Singly and doubly linked lists ✅ Stack (LIFO) with push/pop operations ✅ Queue (FIFO) with enqueue/dequeue support ✅ Circular Queue, Priority Queue (optional extension) ✅ Modular, reusable codebase ✅ Well-documented and easy to use 🛠️ Installation

Clone the repository:

git clone https://github.com/dany237/data-structures-python.git cd DataStructureManager Then, install the package locally (if you turned it into a proper package):

pip install . 📚 Usage

from data_structures import Stack, Queue, LinkedList

Stack example

s = Stack() s.push(10) s.push(20) print(s.pop()) # Output: 20

Queue example

q = Queue() q.enqueue(1) q.enqueue(2) print(q.dequeue()) # Output: 1

Linked List example

ll = LinkedList() ll.insert(5) ll.insert(10) ll.display() # Output: 5 -> 10 📁 Project Structure

data_structures_python/ │ ├── data_structures/ │ ├── init.py │ ├── array.py │ ├── circular_linked_list.py │ ├── doubly_linked_list.py | |__ graph.py | |__ linked_list.py | |__ queue.py │ └── stack.py | |__ tree.py │ ├── examples/ | |__array_example.ipynb | |__circular_linked_list.ipynb | |__data_structures.code-workspace | |__doubly_linked_list.ipynb | |__graph_example.ipynb | |__linked_list.ipynb | |__queue.ipynb | |__stack_example.ipynb | |__tree_example.ipynb │ ├── README.md └── setup.py 🎯 Goals

Implement classic data structures from scratch Understand underlying algorithms and time complexities Provide a unified and simple interface for each structure 👩‍💻 Author

Danielle Kapsa Course Data Structure / Tutor Jeremy Your GitHub 📄 License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

danielle_data_structures_python-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file danielle_data_structures_python-0.1.0.tar.gz.

File metadata

File hashes

Hashes for danielle_data_structures_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 76180c87e2545ca273b74bae6a62de0a24dba286deb73f42a9c1382b00bf7c83
MD5 012278c85e49ff7978a4185cd5af165b
BLAKE2b-256 3e8e222763ff9ea7a0a6876d46da151288db8d1cff40cb55e0f31a197a195f93

See more details on using hashes here.

File details

Details for the file danielle_data_structures_python-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for danielle_data_structures_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 765d9b6ddc6c1486820e11963b9947570dbf587a3d18d32cc6cd95a46f19b8f5
MD5 5954895da21aa04760c0333ca40abedc
BLAKE2b-256 8d5b23f24da0e593a7f0c28dd8af96766c67d634c0f31bcd5b7451de6eb4dd20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page