Roblox Software Engineer Coding & Algorithms Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Detect shuffle-mode sequence
Question Given a playlist of distinct songs and two player modes—Random (each next song chosen independently and uniformly at random, with replacement...
Randomly partition array into k segments
Question Given a list of integers and an integer k representing the number of segments, write a function that randomly partitions the list into k non-...
Simulate robot path and detect boundedness
A robot starts at (0, 0) facing north on an infinite 2D plane. It executes a command string s consisting of 'G' (move forward one unit), 'L' (turn lef...
Detect runs and collapse a numeric grid
You are given an m x n grid of digits (0– 9). Phase 1: Find every horizontal or vertical run of length ≥ 3 consisting of the same digit. For each run,...
Implement queue-based rate limiter with multi-key limits
Implement a rate limiter with method allow(timestamp) that returns true if a request is allowed under a limit of K requests per rolling window W milli...
Find largest digit-sum bucket size
You are given two integers low and high (inclusive). Define s(x) as the sum of the decimal digits of x. For every integer x in [low, high], place x in...
Find most frequent call stack from logs
Given an array of log entries for a single-threaded program's function calls, each entry is either '->Name' (function entry) or '<-Name' (function exi...
Detect robot state after movements
Question Implement an algorithm to determine whether a robot following a given set of movement instructions ends in a valid recognized state (variant ...
Design robot path boundedness with repeats
You are given a 2D grid with a set of blocked cells (obstacles) and a robot starting at (0, 0) facing north. The robot executes a finite instruction s...