217. Contains Duplicate
class Solution {
bool containsDuplicate(List nums) {
Set mySet = {};
for(int i in nums){
if(mySet.contains(i)){
return true;
}else{
mySet.add(i);
}
}
return false;
}
}