# The Number of the Smallest Unoccupied Chair (LeetCode 1942) ## Approach Simulate arrivals with available chairs heap. ## Edge cases After coding, walk a failing edge case before declaring done. ## Practice tip Talk through invariants while coding so the interviewer can follow your reasoning. Practice with [undetectable AI interview copilot](https://www.linkjob.ai/).