IMC·Software Engineer·Technical Phone Screen
- Given a stream of events where each event has a timestamp, a category, and a quantity, compute the running 'reduction' metric over time. Recycled quantities count positive, waste quantities count negative. Return either the maximum reduction reached at any point, or the full running series, depending on what the interviewer asks.
“The problem sounds vague at first and I spent probably too long trying to figure out what 'reduction' meant before just asking.”