You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had expected the length of hshs to be one, since hs1 is equal to hs2.
I am not sure if this is an error in HashSet's Hash implementation (e.g., hs1 == hs2 but h(hs1) != h(hs2)) or me misunderstanding the semantics of HashSet.
The text was updated successfully, but these errors were encountered:
This behavior was quite surprising to me:
Output:
I had expected the length of
hshs
to be one, sincehs1
is equal tohs2
.I am not sure if this is an error in
HashSet
'sHash
implementation (e.g.,hs1 == hs2
buth(hs1) != h(hs2)
) or me misunderstanding the semantics ofHashSet
.The text was updated successfully, but these errors were encountered: