TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial…

Follow publication

Member-only story

WALK-THROUGH

My Google Foobar journey

Pratick Roy
TDS Archive
Published in
6 min readAug 14, 2021

--

Level 2.1 — Elevator Maintenance

FooBar Completion Screenshot
FooBar Completion Screenshot ( image by author: Pratick Roy )

Index

  1. My Google FooBar Journey: Level 1 — Getting the Invitation.
  2. My Google FooBar Journey: Level 2.1 — Elevator Maintenance. (This one)
  3. My Google FooBar Journey: Level 2.2 — Gearing Up for Destruction.

The Story So far

You survived a week in Commander Lambda’s organization, and you even managed to get yourself promoted. Hooray! Henchmen still don’t have the kind of security access you’ll need to take down Commander Lambda, though, so you’d better keep working. Chop chop!

So now I had Level 2 access, but defeating Commander Lambda was still a long ways off. The next obstacle in my quest to free my bunny brethren, my next immediate key to progression, was a rather fun challenge.

Elevator Maintenance

At a cursory level, this is quite a simple one really; the devil is hidden in the edge cases. I initially started with a really unclean solution to force myself through, and for the most part it worked. However, I simply couldn’t crack open some of the test cases, no matter how many more hacks I introduced.

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Pratick Roy
Pratick Roy

Written by Pratick Roy

Love to Code. Love to Write. Love to Write about Code. SDE-III at Amazon. One Word to Live By — Eudaimonia. Visit Me At : https://pratickroy.github.io/.

No responses yet

Write a response