Standard Chartered | OA | Coding Questions | 2023
standard-chartered · Question · Posted Apr 2026
Problem Statement: Dynamic Max-Min Product Starting with an empty multiset of integers named elements, you are required to perform a series of operations and, after each one, calculate the product of the current maximum and minimum values in the set. Operations push x: Inserts the integer x into elements. pop x: Removes one occurrence of the integer x from elements. Requirements The function must return an array of long integers representing the product (min×max) calculated after every individual operation. The ...
The full answer & interview discussion are available to premium members.
Log in Create a free account