2daysbeforeinterview
Home1Companies2Problems3Experiences4Compensation5Assistant

Spaces

Saved work

Your prep

Notes6Bookmarks7Submissions

Community

Leaderboard8Send feedback
Contribute9
2daysbeforeinterview
2daysbeforeinterview

Straight from the interview room.

Browse

  • Companies
  • Problems
  • Experiences
  • Compensation
  • Leaderboard
  • Pricing

Contribute

  • Add a question
  • Share an experience
  • Report compensation
  • Committed Contributor
  • Send feedback

About

  • About 2daysbeforeinterview
  • Contact
  • Privacy
  • Terms
  • Refunds
  • Delivery

© 2026 2daysbeforeinterview

  • Instagram(opens in a new tab)
  • YouTube(opens in a new tab)
  • X (Twitter)(opens in a new tab)
  • help@2daysbeforeinterview.com
HomeCompaniesProblems
Keep holding ⌥Alt and press a number · ? for every shortcut
Back to GoogleFunction: All functionsEngineeringDataMachine learningProductDesignQuality assuranceBusiness
Home1Companies2Problems3Experiences4Compensation5Assistant

Spaces

Saved work

Your prep

Notes6Bookmarks7Submissions

Community

Leaderboard8Send feedback
Back to Google
Puzzle
1 reportlast asked …
Google

Pick the Best Ad using functions F and G

You have two functions. F returns the 4 best ads for a user, in no particular order. G takes any set of ads and returns the worst one. Using these functions, find the single best ad. What's the fewest number of calls you need? (Follow-up below)

Domains

Backend
asked Aug 2026Report
Discussion
Related questions
Asked atGoogle
My notes
Community solutions
Google
Google