Compute rolling means without spreading non-finite values
Company: Headlands
Role: Quantitative Researcher
Category: Software Engineering Fundamentals
Difficulty: hard
Interview Round: Technical Screen
Overview: Compute contiguous moving averages in linear time and keep NaN or infinite inputs local to affected windows. Define non-finite semantics, restore finite outputs after exceptional values leave, and discuss numerical error.
Read the full Headlands Quantitative Researcher interview experience this question came from