1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 23:11:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 16:56:27 +08:00
parent e730aa6794
commit ad15da05aa
2517 changed files with 7358 additions and 7332 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>给你两个非负整数&nbsp;<code>low</code> 和&nbsp;<code>high</code>&nbsp;。请你返回<em>&nbsp;</em><code>low</code><em> </em>和<em>&nbsp;</em><code>high</code><em>&nbsp;</em>之间(包括二者)奇数的数目。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例 1</strong></p>\n\n<pre><strong>输入:</strong>low = 3, high = 7\n<strong>输出:</strong>3\n<strong>解释:</strong>3 到 7 之间奇数数字为 [3,5,7] 。</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre><strong>输入:</strong>low = 8, high = 10\n<strong>输出:</strong>1\n<strong>解释:</strong>8 到 10 之间奇数数字为 [9] 。</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>0 &lt;= low &lt;= high&nbsp;&lt;= 10^9</code></li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 45,
"likes": 46,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -137,7 +137,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"20.7K\", \"totalSubmission\": \"40.1K\", \"totalAcceptedRaw\": 20673, \"totalSubmissionRaw\": 40068, \"acRate\": \"51.6%\"}",
"stats": "{\"totalAccepted\": \"21.1K\", \"totalSubmission\": \"40.9K\", \"totalAcceptedRaw\": 21057, \"totalSubmissionRaw\": 40904, \"acRate\": \"51.5%\"}",
"hints": [
"If the range (high - low + 1) is even, the number of even and odd numbers in this range will be the same.",
"If the range (high - low + 1) is odd, the solution will depend on the parity of high and low."