347. Top K Frequent Elements/692. Top K Frequent Words
摘要:Given a non-empty array of integers, return the k most frequent elements. Example 1: Example 2: Input: nums = [1], k = 1 Output: [1]非常经典的一道题,有以下几点:1.
阅读全文
posted @
2019-01-15 03:54
KeepAC
阅读(117)
推荐(0)