Katkat
HR Screen

A Next-Word Predictor Coding Round Plus BQ

GoogleData Scientist · HR Screen · Feb 2026

This round's interview question: given some training sentences, write two functions — a training function and a predictor function. The predictor function should take a word as input and output what the first word after that word could be. Example: ["I", "am", "Sam"] ["Sam", "I", "am"] ["I", "like", "green", "eggs", "and", "ham"] My approach: in the training function, use a dictionary to count ho…

Shared by a candidate · reported Feb 2026. Interview formats change; use it as a guide, not a script.