Showing 3 questions
Find the median of all sliding windows of a given size within an array of numbers. The window slides one position at a time from left to right.
#1. Sliding Window Median
Design a data structure to calculate the moving average of a stream of numbers. The moving average is calculated over a sliding window of a specified size.
#2. Moving Average from Data Stream
You're given user website visit logs. Find the most frequent sequence of three websites visited by any user.
#3. Analyze User Website Visit Pattern