Tap here to switch tabs
Problem
Submissions

Problem: Count Odd Numbers in an Interval Range

Count Odd Numbers in an Interval Range asks you to count how many odd integers lie in the inclusive interval from a given non-negative low value to a high value.

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

Count Odd Numbers in an Interval Range asks you to count how many odd integers lie in the inclusive interval from a given non-negative low value to a high value.

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