In my 3rd semester, I challenged myself to build something bigger than assignments and coding exercises. So I built a complete Library Management System (LMS) from scratch using only core Data Structures in Python. No frameworks. No databases. No shortcuts. Just raw DSA. At that time, we were studying Binary Search Trees and Linked Lists. Instead of just solving textbook problems, I wanted to see what happens when these structures power a real system. Here’s how I designed it: 🔹 Books → Binary Search Tree (BST) Each book was stored using its ID as the key. This allowed efficient search, insertion, and deletion in O(log n) average time. I implemented: Insertion Deletion (including inorder successor logic) Search Quantity updates Issue & return operations 🔹 Admin Accounts → Singly Linked List Admins were stored dynamically in a linked list. I implemented: Account creation with duplicate prevention Password verification Hint-based password recovery Account deletion with position tracking 🔹 Students → Ordered Linked Structure Each student record contained: ID Name Two book slots Issue dates Return deadlines Fine calculation logic The system also: ✔ Applied 15-day return deadlines ✔ Automatically calculated fines ✔ Controlled maximum book allotment ✔ Maintained dynamic memory without using built-in collections What I learned from this project: Data structure choice directly impacts performance. Edge cases take more effort than the main logic. Deletion in a BST is not as simple as it looks in textbooks. Building a system teaches more than solving isolated problems. Debugging pointer logic in linked lists strengthens fundamentals. Looking back, I would now improve it using: Hash maps for O(1) lookups A self-balancing tree (AVL/Red-Black) instead of a plain BST Better separation between logic and UI But the most important outcome wasn’t the code. It was understanding how data structures connect to real-world systems. If you’re learning DSA right now, try building something complete instead of just solving practice questions. It changes how you think. Curious — what was the first “real” system you built while learning core CS concepts? #DataStructures #Python #ComputerScience #DSA #LearningJourney #SoftwareEngineering #ProblemSolving

See more comments

To view or add a comment, sign in

Explore content categories