Problem 1523 · Easy

Count Odd Numbers in an Interval Range

Count odd integers in a range using arithmetic on the endpoints rather than scanning every number. The visual marks the odd values on a number line.

Open the interactive visualisation