Google interview question

Problems that were solved using hash and heaps.