Most frequent number using a single stack
Filed under Adobe
The question
Given an array of 0s and 1s, find the number that occurs most frequently using only a single stack and no other variable.
No write-up yet. Related questions below have one.
Related Adobe questions
Collected from public candidate posts and coding forums. Updated Nov 2026.