Sort / Top-K with Faulty or Unreliable Comparator
Mercor interview questions · Hard · Tech Deep Dive round · reported 3× · written walkthrough
An algorithm-design discussion about sorting or top-k selection when the comparator lies deterministically on some pairs.
The full question, tests and reference solution are available with a plan that includes Mercor.
Run your code with Ctrl+Enter to see results.