Datadog·Software Engineer·Technical Phone Screen
- You have a list of datapoints, each with a set of tags, a timestamp, and a numeric value. Write a function that takes a tag t and a window size k, filters to only the datapoints containing tag t, and returns the sum for every consecutive window of k datapoints from that filtered set.
“Took me a minute to realize the windowing happens after filtering, not over the full dataset.”