POV: The Elevator Stops at EVERY Floor ๐๐ค (O(n) vs O(1) IRL)
561views
6likes
1comments
1:01
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Running late. Just need floor 10. The elevator stops at EVERY. SINGLE. FLOOR.
This is what O(n) linear complexity feels like in real life...
Meanwhile the stairs are right there โ O(1) direct access. No stops. Just go.
// O(n) - Elevator
for (let f = 1; f = 10; f++) {
elevator.stopAt(f);
}
// O(1) - Stairs
stairs.goDirectTo(10); // Done!
Sometimes the direct route wins.
๐ฌ Episode 04 of Animated Stories โ relatable moments with a programming twist!
๐ Follow for more coding chaos!
๐ Turn on notifications for the next episode!
#Shorts #Programming #Coding #Developer #Tech #Animation #BigO #TimeComplexity #Algorithms #SoftwareEngineer #CodingHumor #Elevator
#Relatable #ComputerScience #DataStructures
Back to tutorials๐ Read the articleOpen in YouTube
Duration
1:01
Published
January 30, 2026
Added to Codegiz
March 15, 2026