Software Engineer • Junior-Level
Software Engineer • Junior-Level
High QualityPrep Other Coding Questions Asked by Google
Continue with targeted prep from Google's coding question bank.
Interview Summary
This Google onsite had two coding rounds, both of which looked approachable at first but had follow-ups that required more careful modeling. One problem was about counting integers that satisfy several digit-level rules, and the other was a string decomposition problem using a fixed dictionary of short symbols. The difficulty felt average overall, but the follow-ups made the rounds less straightforward than the initial prompts suggested.
Interview Details
Interview Questions Details
-
Coding Round 1 — Digit Rule Validation and Counting: The first coding question defined a class of valid positive integers using several digit rules. A number was valid only if it avoided a forbidden digit, did not repeat any digit, and did not contain a “valley” digit that was smaller than both of its immediate neighbors. The first part was to check whether a single number satisfies the rules, which can be done by scanning its digits once while tracking seen digits and local neighbor relationships.
- Coding Round 1 Follow-Up — Counting Valid Numbers Up to a Limit: The
Unlock Full Details
Create a free account to unlock this interview experience report.