Maps Sets and Hashes Comments
Comments
-
I simply looped through, but I don't yet see how to solve this using a Set or a Hash.
-
@Paul - Does it help if I say that the number you're looking for is k - N where N is the current item in the loop? A set would help you know if you've already seen the answer to that sum.
Laura Wyman
Jul 30, 9:39 PMWhen are sets used?