Sliding Window Average Calculation
Asked at Decagon · Coding Questions · Difficulty: Easy
Implement a class called `SlidingWindow` that initializes with an integer `window_size`, representing the size of the sliding window.
Loading the problem…
More Decagon interview questions
- Sliding Window Conversation Scores with Update and Percentile Query
- Recipe Shopping Cart with Ingredient Bulk Discounts (Undo/Redo)
- Design a Sliding Window Average with Insert and Optional Update
- Recipe Shopping Cart (Ingredients Still Needed)
- Cooking App Cart with Nested Transactions
- Enumerate All Games of 4x4 Three-in-a-Row