你得把你的代码贴上来才有意义,HashSet和HashMap的实现本质上是一样的。
【 在 chzhang7901 的大作中提到: 】
挺奇怪的,我用HashSet没法滤掉重复。
换成HashMap就好了。
【 在 z8j 的大作中提到: 】
: 哥们,你这样的问题是ChatGPT最擅长的,几秒内就搞定,还带测试用例,要是不对就自己改进一下吧,或者Let's think step by step一下
: Here's an example implementation of a Java method that takes a list of arrays as input, removes duplicate arrays and returns the updated list:
: java
: ...................
--
FROM 117.25.182.114