Decagon·AI Engineer·Technical Phone Screen
May 2026
Interviewed for an AI Engineer role at Decagon and got a coding question involving function call logs on a single-threaded CPU. Pretty algorithmic for an AI role but not unreasonable once you see what they're going for.
- Given a list of function call logs in the format 'function_id:start_or_end:timestamp', compute the exclusive execution time for each function on a single-threaded CPU, where exclusive time excludes any time spent in nested function calls.
“I knew a stack was involved pretty quickly but fumbled the part where you have to handle the end timestamp correctly.”