Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Filter a collection of records to retain only those containing a specific metadata tag.
Sort the remaining records chronologically based on their timestamps.
Compute the sum of values for every consecutive window of size k using an efficient sliding approach.
What This Tests
Collection filtering and searching
Custom object sorting
Sliding window technique for aggregation
Handling edge cases like insufficient data size
Common Patterns
Sliding Window
Sorting
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Report
Report seen similar question in interview
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
python
Auto
Debug
Run
Submit
Stdout
-