Make sure to give the sister one candy of each kind if not exceeding half of the total count:

```
def distributeCandies(self, candies):
return min(len(candies)/2, len(set(candies)))
```

C++:

```
int distributeCandies(vector<int>& candies) {
return min(set<int>(candies.begin(), candies.end()).size(), candies.size()/2);
}
```