---
# System prepended metadata

title: 1002. Find Common Characters
tags: [Leetcode, Easy]

---

# 1002. Find Common Characters
###### tags: `Leetcode` `Easy`
Link: https://leetcode.com/problems/find-common-characters/description/
## Code
```python=
class Solution:
    def commonChars(self, words: List[str]) -> List[str]:
        count = [100]*26
        for word in words:
            curr = [0]*26
            for c in word:
                curr[ord(c)-ord('a')] += 1
            count = [min(count[i], curr[i]) for i in range(26)] 
        ans = []
        for i in range(26):
            for _ in range(count[i]):
                ans.append(chr(ord('a')+i))
        return ans
```