Click here to see the full article post
Why space complexity is O(1) when a HashSet can potentially contain all N numbers?
Space Complexity should be O(N)
@awice, I think space complexity should be O(N).
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.