This is a repository of my Python solutions to the problems I encountered while doing the Google Foobar challenge.
I do provide brief explanations of the algorithms used in the the code files as comments. Maybe eventually I'll write a blog post with more in-depth explanations. I'd like to explore possibly more optimal solutions to the problems I did at a later date.
The challenge specification allows you to submit either Python 2.7.13 or Java 8 code for your solutions.
As it is the 23rd of April 2022 at time of writing, Python 2 is deprecated and I don't have (nor want) it on my system, I opted to use Docker to run my code in a Python 2 container to develop locally.
I created helpful Bash scripts to run your solutions in either a Python 2.7.13 or a Java 8 container:
Both scripts behave the same way, call the script from the root directory of this repository and provide the directory of the solution you wish to run.
Example usage:
google-foobar $ ./run-python2-docker.sh bomb-baby