All practice tasks

Knowledge Check

Comparator contract purpose

What is the main purpose of Comparator contract in search sorting?

Answer options

  • A. Halve a sorted search range repeatedly
  • B. Preserve order among equal sort keys
  • C. Define a consistent ordering between values
  • D. Partition values around a chosen rank

What this task practices

Comparator contract purpose is a knowledge check interview exercise that trains prompt interpretation, explicit assumptions, a concrete response, and a clear explanation of tradeoffs. The catalog marks it as easy difficulty. It focuses on Search Sorting, Comparator Contract. The signed-in workspace provides the tools for the round and evaluates the attempt against task-specific criteria. Reference solutions, hidden checks, evaluator instructions, and candidate work remain private.

Sign in to startThe workspace and evaluation open after sign in.