Microsoft Interview Question

Basic data structures - median in a stream of integers, topological sort