mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 179,
|
||||
"likes": 180,
|
||||
"dislikes": 37,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"36.1K\", \"totalSubmission\": \"69.9K\", \"totalAcceptedRaw\": 36088, \"totalSubmissionRaw\": 69902, \"acRate\": \"51.6%\"}",
|
||||
"stats": "{\"totalAccepted\": \"36.1K\", \"totalSubmission\": \"69.9K\", \"totalAcceptedRaw\": 36110, \"totalSubmissionRaw\": 69935, \"acRate\": \"51.6%\"}",
|
||||
"hints": [
|
||||
"To determine the nearest multiple of 10, we can brute force the rounded amount since there are at most 100 options. In case of multiple nearest multiples, choose the largest.",
|
||||
"Another solution is observing that the rounded amount is floor((purchaseAmount + 5) / 10) * 10. Using this formula, we can calculate the account balance without having to brute force the rounded amount."
|
||||
|
Reference in New Issue
Block a user