Find second largest element in array or stream
Filed under ION
The question
Find the second largest element in an array or a continuously updating stream, handling multiple modifications and proposing optimized data structures like priority queues or sets.
No write-up yet. Related questions below have one.
Related ION questions
Collected from public candidate posts and coding forums. Updated Nov 2026.