mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 19:31:42 +08:00
add leetcode problem-cn part1
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<p>给你两个非负整数 <code>low</code> 和 <code>high</code> 。请你返回<em> </em><code>low</code><em> </em>和<em> </em><code>high</code><em> </em>之间(包括二者)奇数的数目。</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>low = 3, high = 7
|
||||
<strong>输出:</strong>3
|
||||
<strong>解释:</strong>3 到 7 之间奇数数字为 [3,5,7] 。</pre>
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>low = 8, high = 10
|
||||
<strong>输出:</strong>1
|
||||
<strong>解释:</strong>8 到 10 之间奇数数字为 [9] 。</pre>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>提示:</strong></p>
|
||||
|
||||
<ul>
|
||||
<li><code>0 <= low <= high <= 10^9</code></li>
|
||||
</ul>
|
Reference in New Issue
Block a user