1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 15:01:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -11,7 +11,7 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Hard",
"likes": 378,
"likes": 396,
"dislikes": 21,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Number of Single Divisor Triplets\", \"titleSlug\": \"number-of-single-divisor-triplets\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Check If Array Pairs Are Divisible by k\", \"titleSlug\": \"check-if-array-pairs-are-divisible-by-k\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"7.4K\", \"totalSubmission\": \"28K\", \"totalAcceptedRaw\": 7369, \"totalSubmissionRaw\": 28008, \"acRate\": \"26.3%\"}",
"stats": "{\"totalAccepted\": \"7.7K\", \"totalSubmission\": \"29K\", \"totalAcceptedRaw\": 7712, \"totalSubmissionRaw\": 28997, \"acRate\": \"26.6%\"}",
"hints": [
"For any element in the array, what is the smallest number it should be multiplied with such that the product is divisible by k?",
"The smallest number which should be multiplied with nums[i] so that the product is divisible by k is k / gcd(k, nums[i]). Now think about how you can store and update the count of such numbers present in the array efficiently."