1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 06:51:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 15:21:05 +08:00
parent b84ae535b7
commit e730aa6794
2244 changed files with 8703 additions and 59499 deletions

View File

@@ -11,7 +11,7 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Hard",
"likes": 377,
"likes": 378,
"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.3K\", \"totalSubmission\": \"27.9K\", \"totalAcceptedRaw\": 7341, \"totalSubmissionRaw\": 27904, \"acRate\": \"26.3%\"}",
"stats": "{\"totalAccepted\": \"7.4K\", \"totalSubmission\": \"28K\", \"totalAcceptedRaw\": 7369, \"totalSubmissionRaw\": 28008, \"acRate\": \"26.3%\"}",
"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."