π¦ DataStructureManager
A Python package to manage and interact with core data structures like Arrays, Lists, Stacks, Queues, and more. 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/yourusername/DataStructureManager.git cd DataStructureManager Then, install the package locally (if you turned it into a proper package):
pip install . π Usage
from datastructuremanager import Stack, Queue, LinkedList
s = Stack() s.push(10) s.push(20) print(s.pop()) # Output: 20
q = Queue() q.enqueue(1) q.enqueue(2) print(q.dequeue()) # Output: 1
ll = LinkedList() ll.insert(5) ll.insert(10) ll.display() # Output: 5 -> 10 π Project Structure
DataStructureManager/ β βββ datastructuremanager/ β βββ init.py β βββ array.py β βββ stack.py β βββ queue.py β βββ linkedlist.py β βββ utils.py β βββ tests/ β βββ test_stack.py β βββ test_queue.py β βββ 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
Your Name Course Name / Professor Your GitHub π License
This project is licensed under the MIT License.