Skip to content

Commit 122f086

Browse files
committed
Create README - LeetHub
1 parent a18bf68 commit 122f086

File tree

1 file changed

+23
-0
lines changed
  • 1523-count-odd-numbers-in-an-interval-range

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<h2><a href="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><font face="monospace">high</font></code>. Return the <em>count of odd numbers between </em><code>low</code><em> and </em><code><font face="monospace">high</font></code><em>&nbsp;(inclusive)</em>.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong class="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><strong class="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>
17+
18+
<p>&nbsp;</p>
19+
<p><strong>Constraints:</strong></p>
20+
21+
<ul>
22+
<li><code>0 &lt;= low &lt;= high&nbsp;&lt;= 10^9</code></li>
23+
</ul>

0 commit comments

Comments
 (0)