I’ve recently been learning Python and was invited to the Google Foobar challenge. Google Foobar is an invitation only event that appears if Google detects that you’ve been searching for Python or Java related topics. You can accept the even and complete 5 levels which if you complete you will be able to fill out your personal information for a chance at an interview at Google. My skills aren’t the best but I had some trouble figuring out some of the levels so I decided to publish my submissions in hopefully helping someone out.
To complete the Google Foobar Level 2 challenge, Please Pass the Coded Messages
When I first wrote the answer for this puzzle it worked on my computer but Google kept giving an error code around for:
num= ''.join(str(x) for x in subset)
I couldn’t figure out another solution to the puzzle. I ended up going a different route. Both my solutions are below but only the second will work. If anyone knows how to get the first solution to work please let me know. Continue Reading