Problem clarification and contract
10%Senior signals
- ✓Clarifies behavior when the stream is empty, whether duplicate values are allowed, and whether the median of an even count should be the average of the two middle values.
- ✓Confirms that insert and getMedian can be called in any interleaved order, not just all inserts then all queries.
Staff-level signals
- ◆Asks about the relative frequency of insert versus getMedian calls to justify the chosen tradeoff.
Common red flags
- ×Codes immediately while assuming an odd-only count without confirming the even-count convention.
