Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

atrey-a/google-foobar

Repository files navigation

Google Foobar Challenge

Bunnies dancing

This repo contains my solutions to the Foobar Challenge, Google's secret way of hiring developers.

Back in 2023, a popup appeared when I was searching something on Google.

You're speaking our language. Up for a challenge? [I want to play] [No Thanks] [Don't show me this again]

Selecting the obvious option brought me to the Foobar challenge, which was presented in the form of a Linux console. The challenges appeared in 5 levels, following a storyline which can be read here.

Challenges

Level 1

Level 2

Level 3

Level 4

Level 5

Languages

Solutions could be submitted in 2 languages:

  • Java
  • Python

Constraints

Java

Your code will be compiled using standard Java 8. All tests will be run by calling the solution() method inside the Solution class

Execution time is limited.

Wildcard imports and some specific classes are restricted (e.g. java.lang.ClassLoader). You will receive an error when you verify your solution if you have used a restricted class.

Third-party libraries, input/output operations, spawning threads or processes and changes to the execution environment are not allowed.

Your solution must be under 32000 characters in length including new lines and other non-printing characters.

Python

Your code will run inside a Python 2.7.13 sandbox. All tests will be run by calling the solution() function.

Standard libraries are supported except for bz2, crypt, fcntl, mmap, pwd, pyexpat, select, signal, termios, thread, time, unicodedata, zipimport, zlib.

Input/output operations are not allowed.

Your solution must be under 32000 characters in length including new lines and other non-printing characters.


Disclaimer

This repository is a personal documentation of the Google Foobar Challenge experience and is not officially affiliated with Google.

About

My Solutions to Google's Foobar Challenge

Topics

Resources

License

Stars

Watchers

Forks

Languages