Skip to content

This repository is dedicated to my assignment on build a python package to manage a some data structure

Notifications You must be signed in to change notification settings

dany237/data-structures-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ 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

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

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.

About

This repository is dedicated to my assignment on build a python package to manage a some data structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages