Differential-test an optimized function against a naive reference
Generate random and edge-case inputs, compare a fast implementation with an obviously correct slow one under explicit tolerances, and keep the test.
Not attemptedSelf-directed (Hypothesis property-based testing)Access: free
The exercise happens on Self-directed (Hypothesis property-based testing). Canonical link: https://hypothesis.readthedocs.io/en/latest/quickstart.html. Link check: link responded (5 Oct 2026). Opened from this app 0 times; opening is not counted as an attempt.
Supports: Research-engineering interviews that ask how you would trust an implementation.
Record an attempt
Attempt history
No attempts recorded yet.