2021年8月10日
摘要: Link: https://leetcode.com/problems/missing-number/ Constraints: n == nums.length 1 <= n <= 104 0 <= nums[i] <= n All the numbers of nums are unique. 阅读全文
posted @ 2021-08-10 20:19 blackraven25 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Link: https://leetcode.com/problems/top-k-frequent-elements/ Constraints: 1 <= nums.length <= 105 k is in the range [1, the number of unique elements 阅读全文
posted @ 2021-08-10 18:48 blackraven25 阅读(19) 评论(0) 推荐(0) 编辑
摘要: Link: https://leetcode.com/problems/top-k-frequent-words/ Code class Solution { public List<String> topKFrequent(String[] words, int k) { Map<String, 阅读全文
posted @ 2021-08-10 18:21 blackraven25 阅读(21) 评论(0) 推荐(0) 编辑