mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
update
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"14.2K\", \"totalSubmission\": \"49.1K\", \"totalAcceptedRaw\": 14201, \"totalSubmissionRaw\": 49117, \"acRate\": \"28.9%\"}",
|
||||
"stats": "{\"totalAccepted\": \"14.2K\", \"totalSubmission\": \"49.1K\", \"totalAcceptedRaw\": 14219, \"totalSubmissionRaw\": 49143, \"acRate\": \"28.9%\"}",
|
||||
"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."
|
||||
|
Reference in New Issue
Block a user