Tap here to switch tabs
Problem
Submissions

Problem: Count Odd Numbers in an Interval Range

med
30 min
Try to solve the Count Odd Numbers in an Interval Range problem.

Statement

Given two non-negative integers low and high, return the count of odd numbers in the inclusive range between low and high.

Constraints:

  • 0≤0 \leq low ≤\leq high ≤109\leq 10^9

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count Odd Numbers in an Interval Range

med
30 min
Try to solve the Count Odd Numbers in an Interval Range problem.

Statement

Given two non-negative integers low and high, return the count of odd numbers in the inclusive range between low and high.

Constraints:

  • 0≤0 \leq low ≤\leq high ≤109\leq 10^9