思路1 map + set

map统计每个数的出现次数,set记录次数集合。两个大小一样,说明没有重复

Last updated

Was this helpful?