You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2><ahref="https://leetcode.com/problems/count-odd-numbers-in-an-interval-range">1630. Count Odd Numbers in an Interval Range</a></h2><h3>Easy</h3><hr><p>Given two non-negative integers <code>low</code> and <code><fontface="monospace">high</font></code>. Return the <em>count of odd numbers between </em><code>low</code><em> and </em><code><fontface="monospace">high</font></code><em> (inclusive)</em>.</p>
2
+
3
+
<p> </p>
4
+
<p><strongclass="example">Example 1:</strong></p>
5
+
6
+
<pre>
7
+
<strong>Input:</strong> low = 3, high = 7
8
+
<strong>Output:</strong> 3
9
+
<b>Explanation: </b>The odd numbers between 3 and 7 are [3,5,7].</pre>
10
+
11
+
<p><strongclass="example">Example 2:</strong></p>
12
+
13
+
<pre>
14
+
<strong>Input:</strong> low = 8, high = 10
15
+
<strong>Output:</strong> 1
16
+
<b>Explanation: </b>The odd numbers between 8 and 10 are [9].</pre>
0 commit comments