โ† Perfios questions

Design a special stack and sort array of 0s, 1s, and 2s

Filed under Perfios

The question

Designed a special stack data structure supporting minimum and maximum operations with extra space, solved a variation of sorting an array of 0s, 1s, and 2s, and wrote a database query to find the second largest element in a table.

No write-up yet. Related questions below have one.

Related Perfios questions

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