Google Software Engineer Interview Experience — OA: Token-Hopping Coin Board and Shared-Digit Grouping

Google·Software Engineer·Dec 2025
Online Assessmenteasy

Two questions, 90 minutes, not hard.

First question: given a string representing the board of a single-player game laid out horizontally, containing three possible values: '.', 'T', 'C'. '.' means the position is empty, 'C' means there's a coin at that position, and 'T' means the player's token is at that position. The board length is at most 100.

The player has multiple tokens, and the movement rules are as follows: each token can move 3 cells to the right per move. The move must be exactly 3 cells to the right — no other step count, and it can never move left. Each token can move multiple times. If the landing cell is already occupied by another token, that move can't be made. If a token lands on a coin after moving, it collects that coin. Each coin can only be collected once. If a token passes over a cell with a coin during a move without landing on it, it doesn't collect that coin — only the coin on the final landing cell counts. Find the maximum number of coins the player can collect.

Second question: given an array containing several two-digit numbers, with array length at most 100. Group together the two-digit numbers that share a common digit (for example, 55, 58, 25, and 45 all share the digit 5, so they can go in the same group; 55, 66, and 77 share no common digit, so they can't be grouped together). Find the largest group size you can create.

Published

Curated and edited by PracHub

Practice the questions from this interview

Discussion

Sign in to join the discussion. The author is notified of every comment.

Loading comments…

Interview at a glance

Company
Google
Role
Software Engineer
Rounds
Online Assessment
Difficulty
easy
Interview date
Dec 2025
Questions from this interview
2 questions

Real Google interview experiences

First-hand reports from Google candidates — the rounds, the questions they were asked, and how it went.

All 127 Google interview experiences