> This problem is paper-only - see explanation for the canonical React solution.
The IntersectionObserver `threshold` option fires the callback when the visible ratio crosses any of the given thresholds. The auto-grader validates the threshold-crossing logic:
Given a previous `intersectionRatio` and a new one, determine which configured threshold values were "crossed" between them (in either direction). Return the crossed thresholds in any order, deduplicated and sorted ascending.
A threshold `t` is crossed iff `min(prev, cur) <= t <= max(prev, cur)` AND `prev !== cur`.
**For the auto-grader:** implement `crossedThresholds(prev, cur, thresholds)`.