摘要:
Given a non-empty array of integers, return the k most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input 阅读全文
posted @ 2022-12-02 11:34
MarkLeeBYR
阅读(20)
评论(0)
推荐(0)
摘要:
Example 1: Input: coins = [1,2,5], amount = 11 Output: 3 Explanation: 11 = 5 + 5 + 1 Example 2: Input: coins = [2], amount = 3 Output: -1 Example 3: I 阅读全文
posted @ 2022-12-02 10:37
MarkLeeBYR
阅读(32)
评论(0)
推荐(0)
浙公网安备 33010602011771号