Goldman Sachs logoGoldman Sachs
Coding·60 minMembers

Min × Max Product After Push / Pop

Members only

Maintain a multiset under a stream of push / pop operations and, after each operation, output the product of the current minimum and maximum elements. Tests whether the candidate reaches for a balance...

SWE
data-structure
bst
streaming
medium
Frequency
Single report
Last asked
2024-10-26
Stage
oa

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...