1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-06 07:51:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2023-12-09 19:57:46 +08:00
parent 9bc4722a45
commit 3770b44d1e
4792 changed files with 10889 additions and 10886 deletions

View File

@@ -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."