Toma·Software Engineer·Technical Phone Screen
May 2026
Toma SWE interview with a coding problem centered on building a simple audio mixer class. The problem looked manageable at first but the overlap/overwrite semantics on same-track writes took a bit to think through clearly.
- Design and implement an AudioStream class that supports multiple named tracks on a shared timeline. It needs a write(track, data, t) method that places float values starting at time t, where later writes to the same track overwrite earlier ones at overlapping indices. It also needs a read(t1, t2) method that returns the summed output across all tracks for each time in [t1, t2). Walk through your data structure choices and the complexity of each operation.
“My first instinct was a 2D array but that falls apart immediately if the time range is unbounded.”