Problem 2426 · Hard
Rewrite nums1 minus nums2 as one difference array, then count earlier differences that are small enough.
Open the interactive visualisation