Menu

1 / 2

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

DEV Community·Md Mijanur Molla·6 months ago
#XxGYiK8b
#ai#hackerearth#lift#real#systems
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.

💡 What Better…

Continue reading — create a free account

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