Data Structures in JavaScript — AVL Tree & Linked List

This project explores the implementation of classic data structures — an AVL Tree and a Linked List — written entirely in JavaScript (ES6). Both are built from first principles to demonstrate algorithmic efficiency, code clarity, and interactive visualization in the browser.

The AVL Tree maintains balance automatically through left and right rotations after insertions or deletions, ensuring consistently fast O(log n) search, insert, and remove operations. The Linked List provides a simple but powerful linear structure with constant-time insertions and deletions from both ends, serving as a foundation for stack or queue abstractions.




Use Case

This project serves as both an educational and diagnostic tool, ideal for teaching core data-structure concepts, experimenting with in-browser algorithms, or benchmarking JavaScript performance. It highlights your ability to combine algorithmic design with real-time front-end visualization — transforming abstract computer science concepts into tangible, interactive experiences.



Technical Highlights


  • - ES6 Class-Based Implementation – Object-oriented structure for clarity and reuse.
  •  
  • - In-Browser Visualization – Dynamic rendering illustrates tree balance and list traversal..
  •  
  • - Custom Rotation Logic – Maintains height balance for predictable performance
  •  
  • - Interactive Testing Environment – Add, delete, and search nodes directly in the UI.
  •  
  • - No External Dependencies – Fully standalone JavaScript with modular architecture.
  •