https://practice.geeksforgeeks.org/problems/find-distinct-elements/0
solution part:-
https://ide.geeksforgeeks.org/xUgcQaNOPU
Hashing problem application part
can u see why i am getting error
@Sumant123 hey bro you are iterating over the entries and trying to modify the map, see you got the concurrent modification exception, you can’t do that, think of it, iterating and removing at the same time will a language should allow?
If you are doubt is clear mark it resolved else ask your query buddy!