Philips Interview Question

Heap code. Binary search vs Linear search P&C code