These are the binary search problems every placement candidate should be able to solve, from a plain search to a median of two lists. For each one, decide first whether you search a position, a boundary or an answer. Trace a small input on paper, then check your program against every test.