Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The <code>y</code> values don't matter; only the <code>x</code> values matter.
Sort all the points by <code>x<sub>i</sub></code>.
Each time, select the smallest <code>x</code> value, <code>x<sub>0</sub></code>, from the unselected points, and then select all the points with <code>x</code> values not larger than <code>x<sub>0</sub> + w</code>.