HTMLify
LeetCode - First Letter to Appear Twice - Python
Views: 500 | Author: abh
1 2 3 4 5 6 7 | class Solution: def repeatedCharacter(self, s: str) -> str: seen = set() for c in s: if c in seen: return c seen.add(c) |