[LeetCode] 387. First Unique Character in a String
Python class Solution: def firstUniqChar(self, s: str) -> int: temp = Counter(s) for i in range(len(s)): if temp[s[i]] == ...
Python class Solution: def firstUniqChar(self, s: str) -> int: temp = Counter(s) for i in range(len(s)): if temp[s[i]] == ...
Python class Solution: def fizzBuzz(self, n: int) -> List[str]: answer = [] for i in range(1, n + 1): if i % 3 == 0 and i ...
Python class Solution: def isPerfectSquare(self, num: int) -> bool: if num ** 0.5 == int(num ** 0.5): return True else: ...
Python class Solution: def mySqrt(self, x: int) -> int: return int(math.sqrt(x))
Python class Solution: def maxArea(self, height: List[int]) -> int: answer = 0 left = 0 right = len(height) - 1 while ...