Getting WA when using same code but replace Set with Map
Can someone please explain to me why this 195043061 gives WA on test 7 while 195042850 got AC. The only difference is the first submission used Map while the second one used Set. Thanks in advance!
Leetcode Weekly 500 Solution Discussion