摘要: 简介 如何寻求一个数组中的出现次数最多的书 虽然最开始想到了这个方法但是不知道如何去表达,grep就利用了这个算法 class Solution { public int majorityElement(int[] nums) { Integer candidate = null; int coun 阅读全文
posted @ 2022-11-04 23:01 HDU李少帅 阅读(21) 评论(0) 推荐(0) 编辑