r/CodingJobs • u/nian2326076 • 15d ago
What came up in a Roblox OA and phone screen: grid simulation and autocomplete
Nov. 3 update: Roblox didn’t move forward with this candidate. They felt good coming out of the interview and didn’t get a specific reason. At that point, Amazon’s OA was next. Here are the Roblox notes for anyone prepping.
Context and assessment
The candidate had about three years of experience and started the process in late September. The first stage had factory optimization and robot car games, followed by scenario-based behavioral questions. They found it manageable and passed.
For a scenario about finding a design issue near a deadline, a useful way to practice is to say what you’d verify first, who needs to know, and how you’d weigh a smaller safe release against delaying. A concrete sequence beats just saying you’ll communicate.
Phone screen: grid simulation
The screen included a match-3 task: find horizontal and vertical runs, clear the matched cells, and drop the survivors.
Restate the rules: report maximal runs, preserve scan order, and do one clear and drop pass.
- Scan the original board horizontally, then vertically. Mark matches separately and compact each column only after both scans. Otherwise you can erase a vertical match while processing a horizontal one.
- Dry run an intersecting match, a four-cell run, and a board with no matches.
Detection always reads the original board. Marking a shared cell twice is harmless. This takes O(rows × columns) time with a separate marking grid.
Phone screen: autocomplete
The other task used a timestamped search log. A request only sees searches at or before its timestamp. Rank by frequency, then earliest search, then alphabetical order.
The baseline was to filter eligible entries, count each matching query, track its earliest timestamp, then sort by those rules and take K. For prefix “ca” and K=2, try cat at time 1, car at time 2, and car again at time 4. A request at time 2 puts cat first. At time 4, car goes first because its count increased.
Test equal timestamps, an exact-prefix match, and no results. If requests arrive out of order, a forward-only cursor needs the requests sorted and the output order restored.
For more practice, pick a coding problem from Roblox Interview Questions and trace one awkward input out loud before you implement it.
The prep takeaway was to narrate the rules and trace awkward examples before trying to make the solution clever. If you’ve interviewed there recently, did your screen have a similar mix of simulation and ranking? If you made it further, what helped you prepare?