Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎬 Streaming Playlist Engine

Python DSA Algorithms License Status

A Python implementation of a streaming platform backend inspired by Netflix and YouTube. The project demonstrates the use of Circular Queues, Stacks, Stable Merge Sort, and Binary Search while following strict DSA constraints.

🚀 Features

  • 📺 Fixed-size Circular Queue
  • ⏪ Playback History Stack
  • 📊 Stable Merge Sort (Descending by Views)
  • 🔍 Binary Search (Search by Video ID)
  • 🧩 Object-Oriented Design
  • 🚫 No built-in sort(), sorted(), pop(0), or insert(0)

📈 Time Complexity

Operation Complexity
Enqueue O(1)
Dequeue O(1)
Undo Playback O(1)
Merge Sort O(N log N)
Binary Search O(log N)

▶️ Run the Project

git clone https://github.com/jk-juhi/Streaming-Playlist-Engine.git
cd Streaming-Playlist-Engine
python test_engine.py

🎯 Assignment Requirements

  • ✅ Fixed-size Circular Queue
  • ✅ Stack-based Playback History
  • ✅ Stable Merge Sort
  • ✅ Binary Search
  • ✅ Python 3.x
  • ✅ No prohibited built-in methods

👩‍💻 Author

Juhi Kansal

About

A Python implementation of a streaming platform backend using Circular Queues, Stacks, Merge Sort, and Binary Search.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages