How come set knows that it contains duplicate value and how it removes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How come set knows that it contains duplicate value and how it removes?

Set contains unique key

18th Apr 2019, 5:49 PM
shu
shu - avatar
3 Answers
+ 1
I think an exemplary implementation of a set is something like this https://code.sololearn.com/c9hIiRK7XM1L/?ref=app
18th Apr 2019, 6:19 PM
Dlite
Dlite - avatar
+ 1
Thank you FD:)
20th Apr 2019, 6:06 PM
shu
shu - avatar