D
Daniel Pitts
The problem itself is artificial and the solution is inelegant becaused0ngd0ng said:The solution of the problem is elegant,and it's a good idea.
I think it's possible to happen in real development requirement.
it adds complexity by using the wrong tools for the job.
It really should be a Map instead of a Set, since Map is designed for
look-up, and Set is designed for containment/iteration only.