Algorithms to Compute the Sliding Window Product
Implement a data structure with the following methods: SlidingWindowProduct() constructs a new instance. add(int num) adds the number num to the data structure. product(int k) returns the product of …