https://leetcode.com/problems/largest-3-same-digit-number-in-string/



Success



```python
class Solution:
    def largestGoodInteger(self, num: str) -> str:
        values = set()
        for n in num:
            if num.count(n) >= 3:
                values.add(n)
        if len(values) > 0:
            values = list(values)
            values.sort(reverse=True)
            for value in values:
                result = value*3
                if result in num:
                    return result
        return ""
```
