DEV Community

Discussion on: Exploring the Two Sum Interview Question in JavaScript

Collapse
 
nas5w profile image
Nick Scialli (he/him)

Hmm, I’m not quite following. When is this reduced to a list of unique numbers?

Collapse
 
moopet profile image
Ben Sinclair

Oh, I totally misread your code. I think when I read you were using new Set() you were calling new Set(nums) to reduce the length of the list you had to process. My bad.