loading...

re: Daily Coding Problem #1 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: In the given example, it would not return true, because the current number is added to the set after checking. Also I tried it and it returns fals...
 

Right, I am sorry, I misread. I thought you had built the hash set before you started the comparison pass, not during it. On closer inspection, good solution.

Code of Conduct Report abuse