← Goldman Sachs questions

Find element appearing more than 50% in a stream

Filed under Goldman Sachs

Identify an element that appears more than 50% of the time in a stream of integers using O(n) time and O(1) space.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.