Most frequent call stack per thread from enter/exit logs, deeper stacks win ties
Company: Roblox
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Technical Screen
Overview: Parse a log of thread-tagged function enter and exit events, maintain a separate call stack for each thread, and return each thread's most frequently occurring call stack, preferring deeper stacks on ties. Tests stack simulation, careful log parsing, counting sequences as keys and multi-level tie-breaking.