mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 23:11:41 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给你两个非负整数 <code>low</code> 和 <code>high</code> 。请你返回<em> </em><code>low</code><em> </em>和<em> </em><code>high</code><em> </em>之间(包括二者)奇数的数目。</p>\n\n<p> </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> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>0 <= low <= high <= 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."
|
||||
|
Reference in New Issue
Block a user