AI Features

Finding MK Average

Try to solve the Finding MK Average problem.

Statement

You are given two integers, m and k, and a stream of integers. Your task is to design and implement a data structure that efficiently calculates the MK Average for the stream.

To compute the MK Average, follow these steps:

  1. ...

Ask