Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

I Created an Elevator Challenge… And the Lift Kept “Coming” Forever 🛗😭

DEV Community·Md Mijanur Molla·about 1 month ago
#XxGYiK8b
#ai#hackerearth#lift#real#systems#requests
Reading 0:00
15s threshold

You press the lift button. Display shows: “Lift is coming.” You wait. 30 seconds… 1 minute… Still not here. 👉 But system says it’s coming. So I turned this into a coding challenge. And yes… This is a real engineering problem. 🛗 The Problem Basic logic: User requests lift Lift moves to floor Request completed Simple. But real buildings are not simple. ⚠️ What Goes Wrong? In real systems: • Multiple requests come at once • Lift keeps changing direction • Some floors get priority • Some requests get delayed forever And suddenly: 👉 Lift feels stuck in another universe. 🧠 What I Observed When exploring this: Basic queue logic works But inefficient scheduling causes delay Some floors get ignored System feels slow and unfair The code works. But the experience is frustrating. 🔍 The Real Issue This is not just movement. It’s about: • Scheduling • Optimization • Fairness • Real-time decisions Because: 👉 Serving requests in order is not always optimal.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More