Philips interview question

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