1523. Count Odd Numbers in an Interval Range
Easy
Given two non-negative integers low
and high
. Return the count of odd numbers between low
and high
(inclusive).
Example 1:
Example 2:
Constraints:
0 <= low <= high <= 10^9
解題
Runtime: 0 ms, faster than 100.00%
Memory Usage: 2 MB, less than 26.16%
Previous1519. Number of Nodes in the Sub-Tree With the Same Label ⭐Next1539. Kth Missing Positive Number
Last updated