第二题用hashmap,键为int值,值为该int值所在的hashset,map<integer,set<integer>>,这种思路应该也可以吧
点赞 2

相关推荐

牛客网
牛客企业服务