mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定一个整数,编写一个算法将这个数转换为十六进制数。对于负整数,我们通常使用 <a href=\"https://baike.baidu.com/item/%E8%A1%A5%E7%A0%81/6854613?fr=aladdin\">补码运算</a> 方法。</p>\n\n<p><strong>注意:</strong></p>\n\n<ol>\n\t<li>十六进制中所有字母(<code>a-f</code>)都必须是小写。</li>\n\t<li>十六进制字符串中不能包含多余的前导零。如果要转化的数为0,那么以单个字符<code>'0'</code>来表示;对于其他情况,十六进制字符串中的第一个字符将不会是0字符。 </li>\n\t<li>给定的数确保在32位有符号整数范围内。</li>\n\t<li><strong>不能使用任何由库提供的将数字直接转换或格式化为十六进制的方法。</strong></li>\n</ol>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n输入:\n26\n\n输出:\n"1a"\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n输入:\n-1\n\n输出:\n"ffffffff"\n</pre>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 240,
|
||||
"likes": 242,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"51.3K\", \"totalSubmission\": \"91.8K\", \"totalAcceptedRaw\": 51285, \"totalSubmissionRaw\": 91842, \"acRate\": \"55.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"52.6K\", \"totalSubmission\": \"94.4K\", \"totalAcceptedRaw\": 52617, \"totalSubmissionRaw\": 94441, \"acRate\": \"55.7%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user