DEV Community

Discussion on: Exploring the Two Sum Interview Question in JavaScript

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.