GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mickey-lab/google-foobar-challenge: Google Foobar answers in Java.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
level-1/challenge-1
level-1/challenge-1
 
 
level-2
level-2
 
 
level-3
level-3
 
 
level-4/challenge-1
level-4/challenge-1
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Google Foobar Challenges

My answers to Google Foobar challenges, in Java.

Google Foo Bar is Google's secret recruiting process embedded within their search engine. There are 5 levels, each with a different number of challenges that follow a story.

After completing 3 levels, I was offered to send my solutions to a Google recruiter, that contacted me shortly after for a phone interview.

Each level included programming challenges of escalating difficultly. Level 4 was my limit.

Index

Level 1

  1. Origins and order

Level 2

  1. Access codes
  2. Peculiar balance

Level 3

  1. Save Beta Rabbit
  2. Spy snippets
  3. Hash it out

Level 4

  1. Undercover underground

Observations

Level 1 - Challenge 1 "Origins and order"

Simple comparisons and string manipulations, where assumptions about the input data led to a more optimized code.

Level 2 - Challenge 1 "Access codes"

Knowledge about Hash Maps was of great help here.

Level 2 - Challenge 2 "Peculiar balance"

I had to research a bit to find an solution to this one, as it uses balanced ternary operations.

Level 3 - Challenge 1 "Save Beta Rabbit"

Due to the scale of the tabular input, brute forcing the solution wasn't an option. Each cell had to use pre calculated values of previous cells.

Level 3 - Challenge 2 "Spy snippets"

The challenge basically asked to do a crude implementation of an search engine. I did my best to find an optimized solution.

Level 3 - Challenge 3 "Hash it out"

Normally brute forcing the solution does not work, but it did in this one. A colleague of mine actually did find a way to reverse the hash algorithm and make it O(n) complexity, I credit him in the code comments.

Level 4 - Challenge 1 "Undercover underground"

The "Undercover underground" required a lot of math. I was able to find something related to the problem in a math forum, but the solution was in Python, and my submissions where in Java.

I tried to understand and convert the Python code, but the challenge timed out before I could finish. I was locked out of Google Foobar after this.

About

Google Foobar answers in Java.

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.